Skip to content

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

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 4 commits into from
Feb 26, 2025

Conversation

DougGregor
Copy link
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
Member Author

@swift-ci please test

@DougGregor DougGregor enabled auto-merge February 26, 2025 19:13
@DougGregor DougGregor merged commit 60b01b7 into swiftlang:main Feb 26, 2025
3 checks passed
@DougGregor DougGregor deleted the se-0458-enable-by-default branch February 27, 2025 00:02
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