-
Notifications
You must be signed in to change notification settings - Fork 10.5k
🍒 [SE-0412] changelog note about strict concurrency for global variables #70863
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
🍒 [SE-0412] changelog note about strict concurrency for global variables #70863
Conversation
ef1c709
to
2957b1e
Compare
@@ -5,6 +5,16 @@ | |||
|
|||
## Swift 5.10 | |||
|
|||
* [SE-0412][]: | |||
|
|||
Under strict concurrency checking, every global or static variable must be either isolated to a global actor or be both immutable and of `Sendable` type. |
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.
Can you show an example of some code that previously could exhibit data races at runtime that is now diagnosed under the proposal?
2957b1e
to
4ef9e50
Compare
The changelog item is added under Swift 5.10 here, but under Swift 5.11 on the main branch. In both pull requests, a reference is missing (at the end of the changelog): [SE-0412]: <https://github.com/apple/swift-evolution/blob/main/proposals/0412-strict-concurrency-for-global-variables.md> |
4ef9e50
to
666a70d
Compare
@swift-ci please test |
Ah good point, I modeled the same as was done with SE-0411 without much thinking about it. I have now on main also moved SE-0411 under 5.10 (@hborla I hope you agree that is the correct change).
Thanks and fixed now. |
No description provided.