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

fix: Mark enums as non_exhaustive #256

Merged
merged 2 commits into from
Jul 22, 2020
Merged

fix: Mark enums as non_exhaustive #256

merged 2 commits into from
Jul 22, 2020

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Jul 22, 2020

All enums that are intended to be extensible are now marked as non_exhaustive. This allows us to add new variants without introducing a breaking change. Particularly, this applies to all error kinds, and common types such as Arch and Language.

There is a similar issue with some structs, particularly in symbolic-debuginfo. We can likely mark them as non_exhaustive, too, in a follow-up.

@jan-auer jan-auer requested a review from a team July 22, 2020 11:24
@jan-auer jan-auer self-assigned this Jul 22, 2020
@jan-auer jan-auer merged commit de6bf9c into master Jul 22, 2020
@jan-auer jan-auer deleted the fix/enum-non-exhaustive branch July 22, 2020 12:16
jan-auer added a commit that referenced this pull request Aug 21, 2020
* master:
  release: 7.5.0
  meta: Update changelog for 7.5.0
  feat: Unsafe transmute for PDB symbols (#258)
  doc: Update changelog for 7.5.0
  feat(unreal): Add unreal data bags (#257)
  fix: Mark enums as non_exhaustive (#256)
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