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

RFC 2008: Enum Variants #59376

Merged
merged 4 commits into from
Mar 30, 2019
Merged

Commits on Mar 27, 2019

  1. Configuration menu
    Copy the full SHA
    4187560 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2019

  1. Implement #[non_exhaustive] on variants.

    This commit removes the check that disallows the `#[non_exhaustive]`
    attribute from being placed on enum variants and removes the associated
    tests.
    
    Further, this commit lowers the visibility of enum variant constructors
    when the variant is marked as non-exhaustive.
    davidtwco committed Mar 28, 2019
    Configuration menu
    Copy the full SHA
    3a88cd7 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2019

  1. Update documentation.

    This commit updates the unstable book and diagnostics to reflect that
    the `#[non_exhaustive]` attribute is now available for enum variants.
    davidtwco committed Mar 29, 2019
    Configuration menu
    Copy the full SHA
    1893841 View commit details
    Browse the repository at this point in the history
  2. Support non-exhaustive enum variants in rustdoc.

    This commit adds support for non-exhaustive enum variants in rustdoc,
    extending the existing support for non-exhaustive enums and structs.
    davidtwco committed Mar 29, 2019
    Configuration menu
    Copy the full SHA
    49a6da2 View commit details
    Browse the repository at this point in the history