@@ -323,7 +323,20 @@ error: aborting due to 29 previous errors
323323For more information about this error, try `rustc --explain E0080`.
324324Future incompatibility report: Future breakage diagnostic:
325325error: any use of this value will cause an error
326- --> $DIR/const-pointer-values-in-various-types.rs:29:43
326+ --> $DIR/const-pointer-values-in-various-types.rs:26:49
327+ |
328+ LL | const I32_REF_USIZE_UNION: usize = unsafe { Nonsense { int_32_ref: &3 }.u };
329+ | --------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
330+ | |
331+ | unable to turn pointer into raw bytes
332+ |
333+ = note: `#[deny(const_err)]` on by default
334+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
335+ = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
336+
337+ Future breakage diagnostic:
338+ error: any use of this value will cause an error
339+ --> $DIR/const-pointer-values-in-various-types.rs:30:43
327340 |
328341LL | const I32_REF_U8_UNION: u8 = unsafe { Nonsense { int_32_ref: &3 }.uint_8 };
329342 | --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -336,7 +349,7 @@ LL | const I32_REF_U8_UNION: u8 = unsafe { Nonsense { int_32_ref: &3 }.uint_
336349
337350Future breakage diagnostic:
338351error: any use of this value will cause an error
339- --> $DIR/const-pointer-values-in-various-types.rs:33 :45
352+ --> $DIR/const-pointer-values-in-various-types.rs:34 :45
340353 |
341354LL | const I32_REF_U16_UNION: u16 = unsafe { Nonsense { int_32_ref: &3 }.uint_16 };
342355 | ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -349,7 +362,7 @@ LL | const I32_REF_U16_UNION: u16 = unsafe { Nonsense { int_32_ref: &3 }.uin
349362
350363Future breakage diagnostic:
351364error: any use of this value will cause an error
352- --> $DIR/const-pointer-values-in-various-types.rs:37 :45
365+ --> $DIR/const-pointer-values-in-various-types.rs:38 :45
353366 |
354367LL | const I32_REF_U32_UNION: u32 = unsafe { Nonsense { int_32_ref: &3 }.uint_32 };
355368 | ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -362,7 +375,20 @@ LL | const I32_REF_U32_UNION: u32 = unsafe { Nonsense { int_32_ref: &3 }.uin
362375
363376Future breakage diagnostic:
364377error: any use of this value will cause an error
365- --> $DIR/const-pointer-values-in-various-types.rs:47:43
378+ --> $DIR/const-pointer-values-in-various-types.rs:42:45
379+ |
380+ LL | const I32_REF_U64_UNION: u64 = unsafe { Nonsense { int_32_ref: &3 }.uint_64 };
381+ | ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
382+ | |
383+ | unable to turn pointer into raw bytes
384+ |
385+ = note: `#[deny(const_err)]` on by default
386+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
387+ = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
388+
389+ Future breakage diagnostic:
390+ error: any use of this value will cause an error
391+ --> $DIR/const-pointer-values-in-various-types.rs:49:43
366392 |
367393LL | const I32_REF_I8_UNION: i8 = unsafe { Nonsense { int_32_ref: &3 }.int_8 };
368394 | --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -375,7 +401,7 @@ LL | const I32_REF_I8_UNION: i8 = unsafe { Nonsense { int_32_ref: &3 }.int_8
375401
376402Future breakage diagnostic:
377403error: any use of this value will cause an error
378- --> $DIR/const-pointer-values-in-various-types.rs:51 :45
404+ --> $DIR/const-pointer-values-in-various-types.rs:53 :45
379405 |
380406LL | const I32_REF_I16_UNION: i16 = unsafe { Nonsense { int_32_ref: &3 }.int_16 };
381407 | ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -388,7 +414,7 @@ LL | const I32_REF_I16_UNION: i16 = unsafe { Nonsense { int_32_ref: &3 }.int
388414
389415Future breakage diagnostic:
390416error: any use of this value will cause an error
391- --> $DIR/const-pointer-values-in-various-types.rs:55 :45
417+ --> $DIR/const-pointer-values-in-various-types.rs:57 :45
392418 |
393419LL | const I32_REF_I32_UNION: i32 = unsafe { Nonsense { int_32_ref: &3 }.int_32 };
394420 | ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -401,7 +427,20 @@ LL | const I32_REF_I32_UNION: i32 = unsafe { Nonsense { int_32_ref: &3 }.int
401427
402428Future breakage diagnostic:
403429error: any use of this value will cause an error
404- --> $DIR/const-pointer-values-in-various-types.rs:65:45
430+ --> $DIR/const-pointer-values-in-various-types.rs:61:45
431+ |
432+ LL | const I32_REF_I64_UNION: i64 = unsafe { Nonsense { int_32_ref: &3 }.int_64 };
433+ | ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
434+ | |
435+ | unable to turn pointer into raw bytes
436+ |
437+ = note: `#[deny(const_err)]` on by default
438+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
439+ = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
440+
441+ Future breakage diagnostic:
442+ error: any use of this value will cause an error
443+ --> $DIR/const-pointer-values-in-various-types.rs:68:45
405444 |
406445LL | const I32_REF_F32_UNION: f32 = unsafe { Nonsense { int_32_ref: &3 }.float_32 };
407446 | ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -414,7 +453,20 @@ LL | const I32_REF_F32_UNION: f32 = unsafe { Nonsense { int_32_ref: &3 }.flo
414453
415454Future breakage diagnostic:
416455error: any use of this value will cause an error
417- --> $DIR/const-pointer-values-in-various-types.rs:72:47
456+ --> $DIR/const-pointer-values-in-various-types.rs:72:45
457+ |
458+ LL | const I32_REF_F64_UNION: f64 = unsafe { Nonsense { int_32_ref: &3 }.float_64 };
459+ | ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
460+ | |
461+ | unable to turn pointer into raw bytes
462+ |
463+ = note: `#[deny(const_err)]` on by default
464+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
465+ = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
466+
467+ Future breakage diagnostic:
468+ error: any use of this value will cause an error
469+ --> $DIR/const-pointer-values-in-various-types.rs:76:47
418470 |
419471LL | const I32_REF_BOOL_UNION: bool = unsafe { Nonsense { int_32_ref: &3 }.truthy_falsey };
420472 | ------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -427,7 +479,7 @@ LL | const I32_REF_BOOL_UNION: bool = unsafe { Nonsense { int_32_ref: &3 }.t
427479
428480Future breakage diagnostic:
429481error: any use of this value will cause an error
430- --> $DIR/const-pointer-values-in-various-types.rs:76 :47
482+ --> $DIR/const-pointer-values-in-various-types.rs:80 :47
431483 |
432484LL | const I32_REF_CHAR_UNION: char = unsafe { Nonsense { int_32_ref: &3 }.character };
433485 | ------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -440,7 +492,7 @@ LL | const I32_REF_CHAR_UNION: char = unsafe { Nonsense { int_32_ref: &3 }.c
440492
441493Future breakage diagnostic:
442494error: any use of this value will cause an error
443- --> $DIR/const-pointer-values-in-various-types.rs:80 :39
495+ --> $DIR/const-pointer-values-in-various-types.rs:84 :39
444496 |
445497LL | const STR_U8_UNION: u8 = unsafe { Nonsense { stringy: "3" }.uint_8 };
446498 | ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -453,7 +505,7 @@ LL | const STR_U8_UNION: u8 = unsafe { Nonsense { stringy: "3" }.uint_8 };
453505
454506Future breakage diagnostic:
455507error: any use of this value will cause an error
456- --> $DIR/const-pointer-values-in-various-types.rs:84 :41
508+ --> $DIR/const-pointer-values-in-various-types.rs:88 :41
457509 |
458510LL | const STR_U16_UNION: u16 = unsafe { Nonsense { stringy: "3" }.uint_16 };
459511 | ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -466,7 +518,7 @@ LL | const STR_U16_UNION: u16 = unsafe { Nonsense { stringy: "3" }.uint_16 }
466518
467519Future breakage diagnostic:
468520error: any use of this value will cause an error
469- --> $DIR/const-pointer-values-in-various-types.rs:88 :41
521+ --> $DIR/const-pointer-values-in-various-types.rs:92 :41
470522 |
471523LL | const STR_U32_UNION: u32 = unsafe { Nonsense { stringy: "3" }.uint_32 };
472524 | ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -479,7 +531,20 @@ LL | const STR_U32_UNION: u32 = unsafe { Nonsense { stringy: "3" }.uint_32 }
479531
480532Future breakage diagnostic:
481533error: any use of this value will cause an error
482- --> $DIR/const-pointer-values-in-various-types.rs:95:43
534+ --> $DIR/const-pointer-values-in-various-types.rs:96:41
535+ |
536+ LL | const STR_U64_UNION: u64 = unsafe { Nonsense { stringy: "3" }.uint_64 };
537+ | ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
538+ | |
539+ | unable to turn pointer into raw bytes
540+ |
541+ = note: `#[deny(const_err)]` on by default
542+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
543+ = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
544+
545+ Future breakage diagnostic:
546+ error: any use of this value will cause an error
547+ --> $DIR/const-pointer-values-in-various-types.rs:100:43
483548 |
484549LL | const STR_U128_UNION: u128 = unsafe { Nonsense { stringy: "3" }.uint_128 };
485550 | --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -492,7 +557,7 @@ LL | const STR_U128_UNION: u128 = unsafe { Nonsense { stringy: "3" }.uint_12
492557
493558Future breakage diagnostic:
494559error: any use of this value will cause an error
495- --> $DIR/const-pointer-values-in-various-types.rs:99 :39
560+ --> $DIR/const-pointer-values-in-various-types.rs:104 :39
496561 |
497562LL | const STR_I8_UNION: i8 = unsafe { Nonsense { stringy: "3" }.int_8 };
498563 | ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -505,7 +570,7 @@ LL | const STR_I8_UNION: i8 = unsafe { Nonsense { stringy: "3" }.int_8 };
505570
506571Future breakage diagnostic:
507572error: any use of this value will cause an error
508- --> $DIR/const-pointer-values-in-various-types.rs:103 :41
573+ --> $DIR/const-pointer-values-in-various-types.rs:108 :41
509574 |
510575LL | const STR_I16_UNION: i16 = unsafe { Nonsense { stringy: "3" }.int_16 };
511576 | ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -518,7 +583,7 @@ LL | const STR_I16_UNION: i16 = unsafe { Nonsense { stringy: "3" }.int_16 };
518583
519584Future breakage diagnostic:
520585error: any use of this value will cause an error
521- --> $DIR/const-pointer-values-in-various-types.rs:107 :41
586+ --> $DIR/const-pointer-values-in-various-types.rs:112 :41
522587 |
523588LL | const STR_I32_UNION: i32 = unsafe { Nonsense { stringy: "3" }.int_32 };
524589 | ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -531,7 +596,20 @@ LL | const STR_I32_UNION: i32 = unsafe { Nonsense { stringy: "3" }.int_32 };
531596
532597Future breakage diagnostic:
533598error: any use of this value will cause an error
534- --> $DIR/const-pointer-values-in-various-types.rs:114:43
599+ --> $DIR/const-pointer-values-in-various-types.rs:116:41
600+ |
601+ LL | const STR_I64_UNION: i64 = unsafe { Nonsense { stringy: "3" }.int_64 };
602+ | ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
603+ | |
604+ | unable to turn pointer into raw bytes
605+ |
606+ = note: `#[deny(const_err)]` on by default
607+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
608+ = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
609+
610+ Future breakage diagnostic:
611+ error: any use of this value will cause an error
612+ --> $DIR/const-pointer-values-in-various-types.rs:120:43
535613 |
536614LL | const STR_I128_UNION: i128 = unsafe { Nonsense { stringy: "3" }.int_128 };
537615 | --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -544,7 +622,7 @@ LL | const STR_I128_UNION: i128 = unsafe { Nonsense { stringy: "3" }.int_128
544622
545623Future breakage diagnostic:
546624error: any use of this value will cause an error
547- --> $DIR/const-pointer-values-in-various-types.rs:118 :41
625+ --> $DIR/const-pointer-values-in-various-types.rs:124 :41
548626 |
549627LL | const STR_F32_UNION: f32 = unsafe { Nonsense { stringy: "3" }.float_32 };
550628 | ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -557,7 +635,20 @@ LL | const STR_F32_UNION: f32 = unsafe { Nonsense { stringy: "3" }.float_32
557635
558636Future breakage diagnostic:
559637error: any use of this value will cause an error
560- --> $DIR/const-pointer-values-in-various-types.rs:125:43
638+ --> $DIR/const-pointer-values-in-various-types.rs:128:41
639+ |
640+ LL | const STR_F64_UNION: f64 = unsafe { Nonsense { stringy: "3" }.float_64 };
641+ | ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
642+ | |
643+ | unable to turn pointer into raw bytes
644+ |
645+ = note: `#[deny(const_err)]` on by default
646+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
647+ = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
648+
649+ Future breakage diagnostic:
650+ error: any use of this value will cause an error
651+ --> $DIR/const-pointer-values-in-various-types.rs:132:43
561652 |
562653LL | const STR_BOOL_UNION: bool = unsafe { Nonsense { stringy: "3" }.truthy_falsey };
563654 | --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -570,7 +661,7 @@ LL | const STR_BOOL_UNION: bool = unsafe { Nonsense { stringy: "3" }.truthy_
570661
571662Future breakage diagnostic:
572663error: any use of this value will cause an error
573- --> $DIR/const-pointer-values-in-various-types.rs:129 :43
664+ --> $DIR/const-pointer-values-in-various-types.rs:136 :43
574665 |
575666LL | const STR_CHAR_UNION: char = unsafe { Nonsense { stringy: "3" }.character };
576667 | --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
0 commit comments