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

Apply noundef attribute to all scalar types which do not permit raw init #94157

Merged
merged 2 commits into from
Feb 28, 2022

Commits on Feb 26, 2022

  1. Apply noundef attribute to all scalar types which do not permit raw init

    Beyond `&`/`&mut`/`Box`, this covers `char`, discriminants, `NonZero*`, etc.
    All such types currently cause a Miri error if left uninitialized,
    and an `invalid_value` lint in cases like `mem::uninitialized::<char>()`
    
    Note that this _does not_ change whether or not it is UB for `u64` (or
    other integer types with no invalid values) to be undef.
    erikdesjardins committed Feb 26, 2022
    Configuration menu
    Copy the full SHA
    5979b68 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2022

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