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

Add #[non_exhaustive] to error enums #842

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

divergentdave
Copy link
Contributor

This adds the #[non_exhaustive] attribute to all enums that appear in public items. This is related to #424, and will generally let us add error variants freely going forward.

@divergentdave divergentdave requested a review from a team as a code owner November 20, 2023 22:33
@divergentdave divergentdave merged commit bf7a485 into main Nov 21, 2023
6 checks passed
@divergentdave divergentdave deleted the david/non-exhaustive-errors branch November 21, 2023 23:34
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.

2 participants