-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[Sema]: ban the use of 'nonisolated' on actor declarations #85185
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
Conversation
The combination doesn't make sense, so don't allow it.
|
@swift-ci please test |
|
Heh "nonisolated actor" that's pretty hilarious |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm and thanks for including a test for distributed as well
|
@swift-ci please test source compatibility |
|
I searched around some more, let's try to make it a hard error right away. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved and updating it to be a hard error after all; hope we can get away with it 🤞
We've searched and can't find any usage of this in the wild, so hope we can get away with banning this outright.
|
@swift-ci please smoke test |
|
@swift-ci please test source compatibility |
|
Just in case. |
|
Ok yeah let's do that with the actual error mode, thanks Pavel 👍 |
|
looks like the source compat suite had the same spurious failures as the first try |
|
Resolves rdar://163558599 |
The combination doesn't make sense, so don't allow it.
Resolves: #85174