Skip to content

[SE-0458] Enable unsafe expressions and for..in effects everywhere#2978

Merged
DougGregor merged 4 commits into
swiftlang:mainfrom
DougGregor:se-0458-enable-by-default
Feb 26, 2025
Merged

[SE-0458] Enable unsafe expressions and for..in effects everywhere#2978
DougGregor merged 4 commits into
swiftlang:mainfrom
DougGregor:se-0458-enable-by-default

Conversation

@DougGregor

Copy link
Copy Markdown
Member

With the acceptance of SE-0458, stop using the unsafeExpression experimental feature to gate the unsafe expression and for..in effect.

Improve disambiguation for the unsafe expression slightly to account for this.

…imental

Keep the experimental feature around for just a moment so we don't have
to pair commits across the swift-syntax and swift repositories.
Only treat `unsafe` as starting an unsafe expression if the following token
is on the same line and isn't a `)`. The former is in line with how we
handle other modifier expressions like this, and the latter is because of
the archaic `@MainActor(unsafe)`.
@DougGregor

Copy link
Copy Markdown
Member Author

@swift-ci please test

@DougGregor DougGregor enabled auto-merge February 26, 2025 19:13
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