Skip to content

[SE-0458] Improved disambiguation for unsafe expressions #79771

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 1 commit into from
Mar 5, 2025

Conversation

DougGregor
Copy link
Member

Disambiguate unsafe in a few more common contexts:

  • Before a comma in a list of whatever form
  • Before a left brace somewhere that we cannot have a closure

Fixes a few more source compatibility regressions found in the wild, rdar://146125433.

Disambiguate `unsafe` in a few more common contexts:
* Before a comma in a list of whatever form
* Before a left brace somewhere that we cannot have a closure

Fixes a few more source compatibility regressions found in the wild,
rdar://146125433.
@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2982

@swift-ci please smoke test

@DougGregor DougGregor merged commit a870e25 into swiftlang:main Mar 5, 2025
3 checks passed
@DougGregor DougGregor deleted the more-unsafe-disambig branch March 5, 2025 14:45
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.

1 participant