rust/compiler/rustc_middle
bors 9fbff89354 Auto merge of #94157 - erikdesjardins:more-noundef, r=nikic
Apply noundef attribute to all scalar types which do not permit raw init

Beyond `&`/`&mut`/`Box`, this covers `char`, enum 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.

Fixes (partially) #74378.

r? `@ghost` (blocked on #94127)

`@rustbot` label S-blocked
2022-02-27 21:41:06 +00:00
..
benches
src Auto merge of #94157 - erikdesjardins:more-noundef, r=nikic 2022-02-27 21:41:06 +00:00
Cargo.toml ⬆ chalk to 0.76.0 2022-01-19 13:44:43 -06:00
README.md

For more information about how rustc works, see the rustc dev guide.