Skip to content

Commit ad8bc89

Browse files
committed
Bless tests
1 parent 10672f8 commit ad8bc89

File tree

3 files changed

+0
-54
lines changed

3 files changed

+0
-54
lines changed

src/test/ui/intrinsics/panic-uninitialized-zeroed.mir.stderr

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -300,24 +300,6 @@ note: enums have to be initialized to a variant
300300
LL | enum LR {
301301
| ^^^^^^^
302302

303-
Future breakage diagnostic:
304-
warning: the type `std::mem::MaybeUninit<bool>` does not definitely permit being left uninitialized
305-
--> $DIR/panic-uninitialized-zeroed.rs:233:20
306-
|
307-
LL | let _val = mem::uninitialized::<MaybeUninit<bool>>();
308-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
309-
| |
310-
| this code causes undefined behavior when executed
311-
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
312-
|
313-
note: the lint level is defined here
314-
--> $DIR/panic-uninitialized-zeroed.rs:12:37
315-
|
316-
LL | #![allow(deprecated, invalid_value, mem_uninitialized)]
317-
| ^^^^^^^^^^^^^^^^^
318-
= note: for more information, see FIXME: fill this in
319-
= note: type might not be allowed to be left uninitialized
320-
321303
Future breakage diagnostic:
322304
warning: the type `[std::ptr::NonNull<()>; 1]` does not definitely permit being left uninitialized
323305
--> $DIR/panic-uninitialized-zeroed.rs:289:24

src/test/ui/intrinsics/panic-uninitialized-zeroed.strict.stderr

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -300,24 +300,6 @@ note: enums have to be initialized to a variant
300300
LL | enum LR {
301301
| ^^^^^^^
302302

303-
Future breakage diagnostic:
304-
warning: the type `std::mem::MaybeUninit<bool>` does not definitely permit being left uninitialized
305-
--> $DIR/panic-uninitialized-zeroed.rs:233:20
306-
|
307-
LL | let _val = mem::uninitialized::<MaybeUninit<bool>>();
308-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
309-
| |
310-
| this code causes undefined behavior when executed
311-
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
312-
|
313-
note: the lint level is defined here
314-
--> $DIR/panic-uninitialized-zeroed.rs:12:37
315-
|
316-
LL | #![allow(deprecated, invalid_value, mem_uninitialized)]
317-
| ^^^^^^^^^^^^^^^^^
318-
= note: for more information, see FIXME: fill this in
319-
= note: type might not be allowed to be left uninitialized
320-
321303
Future breakage diagnostic:
322304
warning: the type `[std::ptr::NonNull<()>; 1]` does not definitely permit being left uninitialized
323305
--> $DIR/panic-uninitialized-zeroed.rs:289:24

src/test/ui/intrinsics/panic-uninitialized-zeroed.thir.stderr

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -300,24 +300,6 @@ note: enums have to be initialized to a variant
300300
LL | enum LR {
301301
| ^^^^^^^
302302

303-
Future breakage diagnostic:
304-
warning: the type `std::mem::MaybeUninit<bool>` does not definitely permit being left uninitialized
305-
--> $DIR/panic-uninitialized-zeroed.rs:233:20
306-
|
307-
LL | let _val = mem::uninitialized::<MaybeUninit<bool>>();
308-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
309-
| |
310-
| this code causes undefined behavior when executed
311-
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
312-
|
313-
note: the lint level is defined here
314-
--> $DIR/panic-uninitialized-zeroed.rs:12:37
315-
|
316-
LL | #![allow(deprecated, invalid_value, mem_uninitialized)]
317-
| ^^^^^^^^^^^^^^^^^
318-
= note: for more information, see FIXME: fill this in
319-
= note: type might not be allowed to be left uninitialized
320-
321303
Future breakage diagnostic:
322304
warning: the type `[std::ptr::NonNull<()>; 1]` does not definitely permit being left uninitialized
323305
--> $DIR/panic-uninitialized-zeroed.rs:289:24

0 commit comments

Comments
 (0)