Skip to content
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

Do nonexhaustive detection based on doc(hidden) attribute #961

Merged
merged 2 commits into from
Jan 24, 2021
Merged

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Jan 24, 2021

Any enum with a doc(hidden) variant is considered nonexhaustive, regardless of what the variant is named.

syn/src/expr.rs

Lines 227 to 228 in 72c006c

#[doc(hidden)]
__Nonexhaustive,


This facilitates implementation of #694.

@dtolnay dtolnay merged commit d6bbbe2 into master Jan 24, 2021
@dtolnay dtolnay deleted the hidden branch January 24, 2021 08:27
Repository owner locked and limited conversation to collaborators Jan 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant