Skip to content

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

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.

@DougGregor
Copy link
Member Author

@swift-ci please test

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 DougGregor force-pushed the more-unsafe-disambig branch from e7741fa to 0ca4948 Compare March 4, 2025 21:02
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swift-ci please test Windows

@DougGregor
Copy link
Member Author

@swift-ci please test platform Windows

@DougGregor
Copy link
Member Author

@swift-ci please test Windows

1 similar comment
@DougGregor
Copy link
Member Author

@swift-ci please test Windows

@DougGregor DougGregor merged commit 19458ae 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