Skip to content

Conversation

@kavon
Copy link
Member

@kavon kavon commented Jun 15, 2022

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
Copy link
Member Author

kavon commented Jun 15, 2022

@swift-ci please test

@kavon kavon requested review from DougGregor and beccadax June 15, 2022 00:45
…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 force-pushed the silence-deinit-warnings branch from 8749d6e to 3211bd8 Compare June 15, 2022 19:02
@kavon
Copy link
Member Author

kavon commented Jun 15, 2022

@swift-ci please smoke test and merge

1 similar comment
@kavon
Copy link
Member Author

kavon commented Jun 16, 2022

@swift-ci please smoke test and merge

Copy link

@jambestwick jambestwick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compelete

@kavon kavon deleted the silence-deinit-warnings branch July 7, 2023 22:02
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.

5 participants