mirror of
https://github.com/apple/swift.git
synced 2026-10-02 10:58:03 +02:00
Fixes rdar://154409893 by adding a function maybeAddIsolatedDeinitFixIt to emit a note about the isolation domain and a fix-it for inserting 'isolated'. Call this function after emitting any relevant errors about accessing actor isolated state. Also scatters this new note throughout the concurrency tests, in all the places its applicable. Adds two weird deinit edge cases to actor_isolation around key paths in deinit and mutating async methods in deinit, since I don't think this is covered anywhere today.