Skip to content

[6.0] SILGen: Diagnose unsupported shared case blocks for noncopyable switch subjects. #74054

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

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented May 31, 2024

Explanation: Diagnoses currently-unimplemented noncopyable switches involving fallthrough or multiple patterns in a single case label.
Scope: Replaces a "not implemented" assertion failure with a proper diagnostic.
Issue: rdar://129034189
Original PR: #74041
Risk: Low. Replaces a "not implemented" assertion failure with a proper diagnostic.
Testing: Swift CI
Reviewer: @kavon

…h subjects.

This isn't fully implemented yet so it would crash eventually, so instead of
letting the compiler crash put up a proper diagnostic indicating this isn't
yet implemented. rdar://129034189
@jckarter jckarter requested a review from a team as a code owner May 31, 2024 17:39
@jckarter
Copy link
Contributor Author

@swift-ci Please test

@jckarter
Copy link
Contributor Author

@swift-ci Please clean test macOS

1 similar comment
@jckarter
Copy link
Contributor Author

@swift-ci Please clean test macOS

@jckarter jckarter merged commit 167415a into swiftlang:release/6.0 Jun 3, 2024
5 checks passed
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.

3 participants