@@ -35,7 +35,7 @@ LL | let _val: Wrap<&'static T> = mem::zeroed();
3535 | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
3636 |
3737 = note: `Wrap<&T>` must be non-null
38- note: references must be non-null (in this struct field)
38+ note: because references must be non-null (in this struct field)
3939 --> $DIR/invalid_value.rs:17:18
4040 |
4141LL | struct Wrap<T> { wrapped: T }
@@ -51,7 +51,7 @@ LL | let _val: Wrap<&'static T> = mem::uninitialized();
5151 | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
5252 |
5353 = note: `Wrap<&T>` must be non-null
54- note: references must be non-null (in this struct field)
54+ note: because references must be non-null (in this struct field)
5555 --> $DIR/invalid_value.rs:17:18
5656 |
5757LL | struct Wrap<T> { wrapped: T }
@@ -163,7 +163,7 @@ LL | let _val: Ref = mem::zeroed();
163163 | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
164164 |
165165 = note: `Ref` must be non-null
166- note: references must be non-null (in this struct field)
166+ note: because references must be non-null (in this struct field)
167167 --> $DIR/invalid_value.rs:14:12
168168 |
169169LL | struct Ref(&'static i32);
@@ -179,7 +179,7 @@ LL | let _val: Ref = mem::uninitialized();
179179 | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
180180 |
181181 = note: `Ref` must be non-null
182- note: references must be non-null (in this struct field)
182+ note: because references must be non-null (in this struct field)
183183 --> $DIR/invalid_value.rs:14:12
184184 |
185185LL | struct Ref(&'static i32);
@@ -217,7 +217,7 @@ LL | let _val: Wrap<fn()> = mem::zeroed();
217217 | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
218218 |
219219 = note: `Wrap<fn()>` must be non-null
220- note: function pointers must be non-null (in this struct field)
220+ note: because function pointers must be non-null (in this struct field)
221221 --> $DIR/invalid_value.rs:17:18
222222 |
223223LL | struct Wrap<T> { wrapped: T }
@@ -233,7 +233,7 @@ LL | let _val: Wrap<fn()> = mem::uninitialized();
233233 | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
234234 |
235235 = note: `Wrap<fn()>` must be non-null
236- note: function pointers must be non-null (in this struct field)
236+ note: because function pointers must be non-null (in this struct field)
237237 --> $DIR/invalid_value.rs:17:18
238238 |
239239LL | struct Wrap<T> { wrapped: T }
@@ -249,7 +249,7 @@ LL | let _val: WrapEnum<fn()> = mem::zeroed();
249249 | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
250250 |
251251 = note: `WrapEnum<fn()>` must be non-null
252- note: function pointers must be non-null (in this field of the only potentially inhabited enum variant)
252+ note: because function pointers must be non-null (in this field of the only potentially inhabited enum variant)
253253 --> $DIR/invalid_value.rs:18:28
254254 |
255255LL | enum WrapEnum<T> { Wrapped(T) }
@@ -265,7 +265,7 @@ LL | let _val: WrapEnum<fn()> = mem::uninitialized();
265265 | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
266266 |
267267 = note: `WrapEnum<fn()>` must be non-null
268- note: function pointers must be non-null (in this field of the only potentially inhabited enum variant)
268+ note: because function pointers must be non-null (in this field of the only potentially inhabited enum variant)
269269 --> $DIR/invalid_value.rs:18:28
270270 |
271271LL | enum WrapEnum<T> { Wrapped(T) }
@@ -285,7 +285,7 @@ note: `RefPair` must be non-null (in this struct field)
285285 |
286286LL | struct Wrap<T> { wrapped: T }
287287 | ^^^^^^^^^^
288- note: references must be non-null (in this struct field)
288+ note: because references must be non-null (in this struct field)
289289 --> $DIR/invalid_value.rs:15:16
290290 |
291291LL | struct RefPair((&'static i32, i32));
@@ -305,7 +305,7 @@ note: `RefPair` must be non-null (in this struct field)
305305 |
306306LL | struct Wrap<T> { wrapped: T }
307307 | ^^^^^^^^^^
308- note: references must be non-null (in this struct field)
308+ note: because references must be non-null (in this struct field)
309309 --> $DIR/invalid_value.rs:15:16
310310 |
311311LL | struct RefPair((&'static i32, i32));
@@ -441,7 +441,7 @@ LL | let _val: OneFruitNonZero = mem::zeroed();
441441 | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
442442 |
443443 = note: `OneFruitNonZero` must be non-null
444- note: `std::num::NonZeroU32` must be non-null (in this field of the only potentially inhabited enum variant)
444+ note: because `std::num::NonZeroU32` must be non-null (in this field of the only potentially inhabited enum variant)
445445 --> $DIR/invalid_value.rs:39:12
446446 |
447447LL | Banana(NonZeroU32),
@@ -457,7 +457,7 @@ LL | let _val: OneFruitNonZero = mem::uninitialized();
457457 | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
458458 |
459459 = note: `OneFruitNonZero` must be non-null
460- note: `std::num::NonZeroU32` must be non-null (in this field of the only potentially inhabited enum variant)
460+ note: because `std::num::NonZeroU32` must be non-null (in this field of the only potentially inhabited enum variant)
461461 --> $DIR/invalid_value.rs:39:12
462462 |
463463LL | Banana(NonZeroU32),
0 commit comments