diff options
| author | Ralf Jung <post@ralfj.de> | 2020-02-29 09:29:51 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-02-29 09:29:51 +0100 |
| commit | bfe593e03a0f73ee52ac666be17e963957ef628f (patch) | |
| tree | a726e4d58a03a523bca9740aa03832c20efcb115 | |
| parent | 729f4cd9ae9a619677afaa4c389e000c03e5b22b (diff) | |
| download | rust-bfe593e03a0f73ee52ac666be17e963957ef628f.tar.gz rust-bfe593e03a0f73ee52ac666be17e963957ef628f.zip | |
clarify a comment in the test
| -rw-r--r-- | src/test/ui/intrinsics/panic-uninitialized-zeroed.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/ui/intrinsics/panic-uninitialized-zeroed.rs b/src/test/ui/intrinsics/panic-uninitialized-zeroed.rs index be0df0ea254..02f8ecaa4ee 100644 --- a/src/test/ui/intrinsics/panic-uninitialized-zeroed.rs +++ b/src/test/ui/intrinsics/panic-uninitialized-zeroed.rs @@ -161,7 +161,9 @@ fn main() { let _val = mem::zeroed::<MaybeUninit<NonNull<u32>>>(); let _val = mem::uninitialized::<MaybeUninit<bool>>(); - // 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 + // of <https://github.com/rust-lang/unsafe-code-guidelines/issues/71> before doing + // anything about that. let _val = mem::uninitialized::<i32>(); let _val = mem::uninitialized::<*const ()>(); } |
