Skip to content
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

Add upcoming feature flag to SE-0337 to match inclusion in compiler #2384

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dempseyatgithub
Copy link
Contributor

An upcoming feature flag is included for SE-0337 in the definition of upcoming features in the compiler.

According to the recent documentation on swift.org about enabling strict concurrency by @hborla, the flag StrictConcurrency should only be used as an upcoming feature flag beginning with Swift 6.0 tools. (With it used as an experimental feature flag in 5.9 and 5.10).

From @DougGregor's comment in apple/swift#66992:

Note that we do not introduce this as an "upcoming" feature, because upcoming features should be in their final "Swift 6" form before becoming available. We are still tuning the checking for concurrency.

This PR adds the upcoming feature flag for this proposal that should be used with Swift 6.0 tools.

It annotates the flag with "Implemented in 6.0" to indicate when the flag should begin being used, similar to how other flags are annotated.

It also has the new "Enabled in Swift 6 language mode" to indicate that strict concurrency is always enabled in Swift 6 language mode.

// cc-ing authors and review manager to ensure this change is correct
@DougGregor @beccadax @airspeedswift

- Add 'Implemented in 6.0' to match guidance the flag should not be
  used as an upcoming feature flag until Swift 6.0
- Annotate that flag is always enabled in Swift 6 language mode
@rjmccall rjmccall added LSG Contains topics under the domain of the Language Steering Group editorial Editorial change to an existing document labels Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial Editorial change to an existing document LSG Contains topics under the domain of the Language Steering Group
Projects
None yet
2 participants