about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorErik Desjardins <erikdesjardins@users.noreply.github.com>2022-02-12 01:38:24 -0500
committerErik Desjardins <erikdesjardins@users.noreply.github.com>2022-02-26 16:42:33 -0500
commit5979b681e6f7cfd760f45440624f8bc1759d2071 (patch)
tree89cd8370981a2d7492b8f0a0c1c662aa7945c9d4 /compiler/rustc_codegen_gcc
parent8604ef0878b42c1b89e87d42382319dceef5f01f (diff)
downloadrust-5979b681e6f7cfd760f45440624f8bc1759d2071.tar.gz
rust-5979b681e6f7cfd760f45440624f8bc1759d2071.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions