diff options
| author | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2022-02-12 01:38:24 -0500 |
|---|---|---|
| committer | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2022-02-26 16:42:33 -0500 |
| commit | 5979b681e6f7cfd760f45440624f8bc1759d2071 (patch) | |
| tree | 89cd8370981a2d7492b8f0a0c1c662aa7945c9d4 /compiler/rustc_codegen_gcc | |
| parent | 8604ef0878b42c1b89e87d42382319dceef5f01f (diff) | |
| download | rust-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
