We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 729f4cd commit bfe593eCopy full SHA for bfe593e
src/test/ui/intrinsics/panic-uninitialized-zeroed.rs
@@ -161,7 +161,9 @@ fn main() {
161
let _val = mem::zeroed::<MaybeUninit<NonNull<u32>>>();
162
let _val = mem::uninitialized::<MaybeUninit<bool>>();
163
164
- // We don't panic for these just to be conservative. They are UB as of now (2019-11-09).
+ // These are UB because they have not been officially blessed, but we await the resolution
165
+ // of <https://github.com/rust-lang/unsafe-code-guidelines/issues/71> before doing
166
+ // anything about that.
167
let _val = mem::uninitialized::<i32>();
168
let _val = mem::uninitialized::<*const ()>();
169
}
0 commit comments