Skip to content

emit error when a noncopyable enum has a raw type #66818

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
Jun 21, 2023

Conversation

kavon
Copy link
Member

@kavon kavon commented Jun 21, 2023

previously I was allowing these because I thought there was some representational difference if the enum is raw. it turns out that a raw enum is only useful if you synthesize conformance to RawRepresentable. since I disabled that synthesis it's kind of silly to still allow the raw type to be written at all.

rdar://110539937

@kavon
Copy link
Member Author

kavon commented Jun 21, 2023

@swift-ci please smoke test and merge

previously I was allowing these because I thought there was
some representational difference if the enum is raw. it
turns out that a raw enum is only useful if you synthesize
conformance to RawRepresentable. since I disabled that
synthesis it's kind of silly to still allow the raw type
to be written at all.

rdar://110539937
@kavon kavon force-pushed the noncopyable-and-raw-error branch from 30b9ecf to 79332c1 Compare June 21, 2023 18:22
@kavon
Copy link
Member Author

kavon commented Jun 21, 2023

@swift-ci please smoke test and merge

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