Skip to content

Commit bfe593e

Browse files
committed
clarify a comment in the test
1 parent 729f4cd commit bfe593e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/ui/intrinsics/panic-uninitialized-zeroed.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ fn main() {
161161
let _val = mem::zeroed::<MaybeUninit<NonNull<u32>>>();
162162
let _val = mem::uninitialized::<MaybeUninit<bool>>();
163163

164-
// We don't panic for these just to be conservative. They are UB as of now (2019-11-09).
164+
// 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.
165167
let _val = mem::uninitialized::<i32>();
166168
let _val = mem::uninitialized::<*const ()>();
167169
}

0 commit comments

Comments
 (0)