Skip to content

Conversation

@kavon
Copy link
Member

@kavon kavon commented Jun 15, 2022

Cherry-pick of #59452

The flow-isolation pass was not respecting the new strict-concurrency checking mode.
Since the Sendable diagnostics in these deinits are very noisy, I'm moving them to only
be emitted in 'complete' mode. The reason why they're so noisy is that any class that
inherits from a @MainActor-constrained class will have these diagnostics emitted when
trying to access its own @MainActor-isolated members.

This is needed, even during the deinit, because multiple instances of a @MainActor-isolated
class might have stored properties that refer to the same state.

This change specifically avoids emitting these diagnostics even in 'targeted' mode because
I'd like to take more time to reconsider the ergonomics of these deinits.

resolves rdar://94699928

…ecking mode

The flow-isolation pass was not respecting the new strict-concurrency checking mode.
Since the Sendable diagnostics in these deinits are very noisy, I'm moving them to only
be emitted in 'complete' mode. The reason why they're so noisy is that any class that
inherits from a `@MainActor`-constrained class will have these diagnostics emitted when
trying to access its own `@MainActor`-isolated members.

This is needed, even during the `deinit`, because multiple instances of a `@MainActor`-isolated
class might have stored properties that refer to the same state.

This change specifically avoids emitting these diagnostics even in 'targeted' mode because
I'd like to take more time to reconsider the ergonomics of these deinits.

resolves rdar://94699928
@kavon kavon requested a review from a team as a code owner June 15, 2022 21:56
@kavon
Copy link
Member Author

kavon commented Jun 15, 2022

@swift-ci please test

@kavon
Copy link
Member Author

kavon commented Jun 16, 2022

@swift-ci please nominate

@tkremenek tkremenek merged commit fb19120 into swiftlang:release/5.7 Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants