Skip to content

[Concurrency] Fix disallowed override isolation to carry `@preconcurr… #75087

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 8, 2024

…ency` bit

If ObjC member cannot be overridden due to isolation mismatch set @preconcurrency bit to make the diagnostic a warning instead of an error in Swift 5 mode.

Resolves: rdar://130776220

@xedin xedin requested review from hborla and slavapestov as code owners July 8, 2024 23:42
@xedin
Copy link
Contributor Author

xedin commented Jul 9, 2024

@swift-ci please test

@xedin xedin force-pushed the rdar-130776220-limited branch from 6e9a77b to e165862 Compare July 9, 2024 20:28
@xedin
Copy link
Contributor Author

xedin commented Jul 9, 2024

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jul 9, 2024

@slavapestov This PR reverts 0097ef6 because diagnostics reply on flags set on "unspecified" isolation at the moment, to downgrade diagnostics in Swift 5 mode.

xedin added 2 commits July 9, 2024 13:34
…ency` bit

If ObjC member cannot be overridden due to isolation mismatch set `@preconcurrency`
bit to make the diagnostic a warning instead of an error in Swift 5 mode.

Resolves: rdar://130776220
There are a few spots in `ActorIsolationRequest` that produce
`unspecified` isolation with `preconcurrency` bit set and diagnostics
rely on that to make downgrade decisions in Swift 5 mode.

This reverts commit 0097ef6.
@xedin xedin force-pushed the rdar-130776220-limited branch from e165862 to 65fb35c Compare July 9, 2024 20:34
@xedin
Copy link
Contributor Author

xedin commented Jul 9, 2024

@swift-ci please test

@xedin xedin merged commit 19f59ce into swiftlang:main Jul 10, 2024
5 checks passed
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.

2 participants