@@ -99,7 +99,7 @@ LL | let _val: (i32, !) = mem::uninitialized();
99
99
| this code causes undefined behavior when executed
100
100
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
101
101
|
102
- = note: integers must not be uninitialized
102
+ = note: integers must be initialized
103
103
104
104
error: the type `Void` does not permit zero-initialization
105
105
--> $DIR/invalid_value.rs:71:26
@@ -332,7 +332,7 @@ LL | let _val: NonNull<i32> = mem::uninitialized();
332
332
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
333
333
|
334
334
= note: `std::ptr::NonNull<i32>` must be non-null
335
- = note: raw pointers must not be uninitialized
335
+ = note: raw pointers must be initialized
336
336
337
337
error: the type `(NonZeroU32, i32)` does not permit zero-initialization
338
338
--> $DIR/invalid_value.rs:95:39
@@ -355,7 +355,7 @@ LL | let _val: (NonZeroU32, i32) = mem::uninitialized();
355
355
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
356
356
|
357
357
= note: `std::num::NonZeroU32` must be non-null
358
- = note: integers must not be uninitialized
358
+ = note: integers must be initialized
359
359
360
360
error: the type `*const dyn Send` does not permit zero-initialization
361
361
--> $DIR/invalid_value.rs:98:37
@@ -462,7 +462,7 @@ note: because `std::num::NonZeroU32` must be non-null (in this field of the only
462
462
|
463
463
LL | Banana(NonZeroU32),
464
464
| ^^^^^^^^^^
465
- = note: integers must not be uninitialized
465
+ = note: integers must be initialized
466
466
467
467
error: the type `bool` does not permit being left uninitialized
468
468
--> $DIR/invalid_value.rs:112:26
@@ -501,7 +501,7 @@ LL | let _val: NonBig = mem::uninitialized();
501
501
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
502
502
|
503
503
= note: `NonBig` must be initialized inside its custom valid range
504
- note: integers must not be uninitialized (in this struct field)
504
+ note: integers must be initialized (in this struct field)
505
505
--> $DIR/invalid_value.rs:23:26
506
506
|
507
507
LL | pub(crate) struct NonBig(u64);
@@ -542,7 +542,7 @@ LL | let _val: i32 = mem::uninitialized();
542
542
| this code causes undefined behavior when executed
543
543
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
544
544
|
545
- = note: integers must not be uninitialized
545
+ = note: integers must be initialized
546
546
547
547
error: the type `f32` does not permit being left uninitialized
548
548
--> $DIR/invalid_value.rs:130:25
@@ -553,7 +553,7 @@ LL | let _val: f32 = mem::uninitialized();
553
553
| this code causes undefined behavior when executed
554
554
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
555
555
|
556
- = note: floats must not be uninitialized
556
+ = note: floats must be initialized
557
557
558
558
error: the type `*const ()` does not permit being left uninitialized
559
559
--> $DIR/invalid_value.rs:133:31
@@ -564,7 +564,7 @@ LL | let _val: *const () = mem::uninitialized();
564
564
| this code causes undefined behavior when executed
565
565
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
566
566
|
567
- = note: raw pointers must not be uninitialized
567
+ = note: raw pointers must be initialized
568
568
569
569
error: the type `*const [()]` does not permit being left uninitialized
570
570
--> $DIR/invalid_value.rs:136:33
@@ -575,7 +575,7 @@ LL | let _val: *const [()] = mem::uninitialized();
575
575
| this code causes undefined behavior when executed
576
576
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
577
577
|
578
- = note: raw pointers must not be uninitialized
578
+ = note: raw pointers must be initialized
579
579
580
580
error: the type `WrapAroundRange` does not permit being left uninitialized
581
581
--> $DIR/invalid_value.rs:139:37
@@ -587,7 +587,7 @@ LL | let _val: WrapAroundRange = mem::uninitialized();
587
587
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
588
588
|
589
589
= note: `WrapAroundRange` must be initialized inside its custom valid range
590
- note: integers must not be uninitialized (in this struct field)
590
+ note: integers must be initialized (in this struct field)
591
591
--> $DIR/invalid_value.rs:49:35
592
592
|
593
593
LL | pub(crate) struct WrapAroundRange(u8);
@@ -662,7 +662,7 @@ LL | let _val: NonNull<i32> = MaybeUninit::uninit().assume_init();
662
662
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
663
663
|
664
664
= note: `std::ptr::NonNull<i32>` must be non-null
665
- = note: raw pointers must not be uninitialized
665
+ = note: raw pointers must be initialized
666
666
667
667
error: the type `bool` does not permit being left uninitialized
668
668
--> $DIR/invalid_value.rs:159:26
0 commit comments