@@ -323,7 +323,20 @@ error: aborting due to 29 previous errors
323
323
For more information about this error, try `rustc --explain E0080`.
324
324
Future incompatibility report: Future breakage diagnostic:
325
325
error: 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
327
340
|
328
341
LL | const I32_REF_U8_UNION: u8 = unsafe { Nonsense { int_32_ref: &3 }.uint_8 };
329
342
| --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -336,7 +349,7 @@ LL | const I32_REF_U8_UNION: u8 = unsafe { Nonsense { int_32_ref: &3 }.uint_
336
349
337
350
Future breakage diagnostic:
338
351
error: 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
340
353
|
341
354
LL | const I32_REF_U16_UNION: u16 = unsafe { Nonsense { int_32_ref: &3 }.uint_16 };
342
355
| ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -349,7 +362,7 @@ LL | const I32_REF_U16_UNION: u16 = unsafe { Nonsense { int_32_ref: &3 }.uin
349
362
350
363
Future breakage diagnostic:
351
364
error: 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
353
366
|
354
367
LL | const I32_REF_U32_UNION: u32 = unsafe { Nonsense { int_32_ref: &3 }.uint_32 };
355
368
| ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -362,7 +375,20 @@ LL | const I32_REF_U32_UNION: u32 = unsafe { Nonsense { int_32_ref: &3 }.uin
362
375
363
376
Future breakage diagnostic:
364
377
error: 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
366
392
|
367
393
LL | const I32_REF_I8_UNION: i8 = unsafe { Nonsense { int_32_ref: &3 }.int_8 };
368
394
| --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -375,7 +401,7 @@ LL | const I32_REF_I8_UNION: i8 = unsafe { Nonsense { int_32_ref: &3 }.int_8
375
401
376
402
Future breakage diagnostic:
377
403
error: 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
379
405
|
380
406
LL | const I32_REF_I16_UNION: i16 = unsafe { Nonsense { int_32_ref: &3 }.int_16 };
381
407
| ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -388,7 +414,7 @@ LL | const I32_REF_I16_UNION: i16 = unsafe { Nonsense { int_32_ref: &3 }.int
388
414
389
415
Future breakage diagnostic:
390
416
error: 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
392
418
|
393
419
LL | const I32_REF_I32_UNION: i32 = unsafe { Nonsense { int_32_ref: &3 }.int_32 };
394
420
| ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -401,7 +427,20 @@ LL | const I32_REF_I32_UNION: i32 = unsafe { Nonsense { int_32_ref: &3 }.int
401
427
402
428
Future breakage diagnostic:
403
429
error: 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
405
444
|
406
445
LL | const I32_REF_F32_UNION: f32 = unsafe { Nonsense { int_32_ref: &3 }.float_32 };
407
446
| ----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -414,7 +453,20 @@ LL | const I32_REF_F32_UNION: f32 = unsafe { Nonsense { int_32_ref: &3 }.flo
414
453
415
454
Future breakage diagnostic:
416
455
error: 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
418
470
|
419
471
LL | const I32_REF_BOOL_UNION: bool = unsafe { Nonsense { int_32_ref: &3 }.truthy_falsey };
420
472
| ------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -427,7 +479,7 @@ LL | const I32_REF_BOOL_UNION: bool = unsafe { Nonsense { int_32_ref: &3 }.t
427
479
428
480
Future breakage diagnostic:
429
481
error: 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
431
483
|
432
484
LL | const I32_REF_CHAR_UNION: char = unsafe { Nonsense { int_32_ref: &3 }.character };
433
485
| ------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -440,7 +492,7 @@ LL | const I32_REF_CHAR_UNION: char = unsafe { Nonsense { int_32_ref: &3 }.c
440
492
441
493
Future breakage diagnostic:
442
494
error: 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
444
496
|
445
497
LL | const STR_U8_UNION: u8 = unsafe { Nonsense { stringy: "3" }.uint_8 };
446
498
| ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -453,7 +505,7 @@ LL | const STR_U8_UNION: u8 = unsafe { Nonsense { stringy: "3" }.uint_8 };
453
505
454
506
Future breakage diagnostic:
455
507
error: 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
457
509
|
458
510
LL | const STR_U16_UNION: u16 = unsafe { Nonsense { stringy: "3" }.uint_16 };
459
511
| ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -466,7 +518,7 @@ LL | const STR_U16_UNION: u16 = unsafe { Nonsense { stringy: "3" }.uint_16 }
466
518
467
519
Future breakage diagnostic:
468
520
error: 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
470
522
|
471
523
LL | const STR_U32_UNION: u32 = unsafe { Nonsense { stringy: "3" }.uint_32 };
472
524
| ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -479,7 +531,20 @@ LL | const STR_U32_UNION: u32 = unsafe { Nonsense { stringy: "3" }.uint_32 }
479
531
480
532
Future breakage diagnostic:
481
533
error: 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
483
548
|
484
549
LL | const STR_U128_UNION: u128 = unsafe { Nonsense { stringy: "3" }.uint_128 };
485
550
| --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -492,7 +557,7 @@ LL | const STR_U128_UNION: u128 = unsafe { Nonsense { stringy: "3" }.uint_12
492
557
493
558
Future breakage diagnostic:
494
559
error: 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
496
561
|
497
562
LL | const STR_I8_UNION: i8 = unsafe { Nonsense { stringy: "3" }.int_8 };
498
563
| ----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -505,7 +570,7 @@ LL | const STR_I8_UNION: i8 = unsafe { Nonsense { stringy: "3" }.int_8 };
505
570
506
571
Future breakage diagnostic:
507
572
error: 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
509
574
|
510
575
LL | const STR_I16_UNION: i16 = unsafe { Nonsense { stringy: "3" }.int_16 };
511
576
| ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -518,7 +583,7 @@ LL | const STR_I16_UNION: i16 = unsafe { Nonsense { stringy: "3" }.int_16 };
518
583
519
584
Future breakage diagnostic:
520
585
error: 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
522
587
|
523
588
LL | const STR_I32_UNION: i32 = unsafe { Nonsense { stringy: "3" }.int_32 };
524
589
| ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -531,7 +596,20 @@ LL | const STR_I32_UNION: i32 = unsafe { Nonsense { stringy: "3" }.int_32 };
531
596
532
597
Future breakage diagnostic:
533
598
error: 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
535
613
|
536
614
LL | const STR_I128_UNION: i128 = unsafe { Nonsense { stringy: "3" }.int_128 };
537
615
| --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -544,7 +622,7 @@ LL | const STR_I128_UNION: i128 = unsafe { Nonsense { stringy: "3" }.int_128
544
622
545
623
Future breakage diagnostic:
546
624
error: 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
548
626
|
549
627
LL | const STR_F32_UNION: f32 = unsafe { Nonsense { stringy: "3" }.float_32 };
550
628
| ------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -557,7 +635,20 @@ LL | const STR_F32_UNION: f32 = unsafe { Nonsense { stringy: "3" }.float_32
557
635
558
636
Future breakage diagnostic:
559
637
error: 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
561
652
|
562
653
LL | const STR_BOOL_UNION: bool = unsafe { Nonsense { stringy: "3" }.truthy_falsey };
563
654
| --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
@@ -570,7 +661,7 @@ LL | const STR_BOOL_UNION: bool = unsafe { Nonsense { stringy: "3" }.truthy_
570
661
571
662
Future breakage diagnostic:
572
663
error: 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
574
665
|
575
666
LL | const STR_CHAR_UNION: char = unsafe { Nonsense { stringy: "3" }.character };
576
667
| --------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---
0 commit comments