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: Uninhabitedness fixes for enum variants and tests #60529

Merged
merged 5 commits into from
May 10, 2019

Commits on May 10, 2019

  1. Add uninhabitedness tests w/ #[non_exhaustive].

    This commit adds tests checking that uninhabited non-exhaustive types
    are considered inhabited when used in another crate.
    davidtwco committed May 10, 2019
    Configuration menu
    Copy the full SHA
    0db087e View commit details
    Browse the repository at this point in the history
  2. Fix inhabitedness of non-exhaustive variants.

    This commit ensures that non-exhaustive variants are considered
    inhabited when used in extern crates.
    davidtwco committed May 10, 2019
    Configuration menu
    Copy the full SHA
    0d034a2 View commit details
    Browse the repository at this point in the history
  3. Fix uninhabitedness of non-exhaustive enums.

    This commit ensures that non-exhaustive enums are considered inhabited
    when used in extern crates.
    davidtwco committed May 10, 2019
    Configuration menu
    Copy the full SHA
    8838b91 View commit details
    Browse the repository at this point in the history
  4. Move uninhabited tests into subdirectory.

    This commit just tries to tidy up a little.
    davidtwco committed May 10, 2019
    Configuration menu
    Copy the full SHA
    214f977 View commit details
    Browse the repository at this point in the history
  5. Add a bunch more tests.

    davidtwco committed May 10, 2019
    Configuration menu
    Copy the full SHA
    1f0fb03 View commit details
    Browse the repository at this point in the history