]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-float-bits-reject-conv.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / consts / const-float-bits-reject-conv.stderr
CommitLineData
04454e1e
FG
1error[E0080]: evaluation of constant value failed
2 --> $SRC_DIR/core/src/num/f32.rs:LL:COL
3 |
4LL | panic!("const-eval error: cannot use f32::to_bits on a NaN")
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 | |
7 | the evaluated program panicked at 'const-eval error: cannot use f32::to_bits on a NaN', $SRC_DIR/core/src/num/f32.rs:LL:COL
8 | inside `core::f32::<impl f32>::to_bits::ct_f32_to_u32` at $SRC_DIR/core/src/panic.rs:LL:COL
9...
10LL | unsafe { intrinsics::const_eval_select((self,), ct_f32_to_u32, rt_f32_to_u32) }
11 | -------------------------------------------------------------------- inside `core::f32::<impl f32>::to_bits` at $SRC_DIR/core/src/num/f32.rs:LL:COL
12 |
04454e1e
FG
13 ::: $DIR/const-float-bits-reject-conv.rs:27:30
14 |
15LL | const MASKED_NAN1: u32 = f32::NAN.to_bits() ^ 0x002A_AAAA;
16 | ------------------ inside `f32::MASKED_NAN1` at $DIR/const-float-bits-reject-conv.rs:27:30
17 |
064997fb 18 = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
04454e1e
FG
19
20error[E0080]: evaluation of constant value failed
21 --> $SRC_DIR/core/src/num/f32.rs:LL:COL
22 |
23LL | panic!("const-eval error: cannot use f32::to_bits on a NaN")
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 | |
26 | the evaluated program panicked at 'const-eval error: cannot use f32::to_bits on a NaN', $SRC_DIR/core/src/num/f32.rs:LL:COL
27 | inside `core::f32::<impl f32>::to_bits::ct_f32_to_u32` at $SRC_DIR/core/src/panic.rs:LL:COL
28...
29LL | unsafe { intrinsics::const_eval_select((self,), ct_f32_to_u32, rt_f32_to_u32) }
30 | -------------------------------------------------------------------- inside `core::f32::<impl f32>::to_bits` at $SRC_DIR/core/src/num/f32.rs:LL:COL
31 |
04454e1e
FG
32 ::: $DIR/const-float-bits-reject-conv.rs:28:30
33 |
34LL | const MASKED_NAN2: u32 = f32::NAN.to_bits() ^ 0x0055_5555;
35 | ------------------ inside `f32::MASKED_NAN2` at $DIR/const-float-bits-reject-conv.rs:28:30
36 |
064997fb 37 = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
04454e1e 38
2b03887a 39error[E0080]: evaluation of constant value failed
923072b8
FG
40 --> $DIR/const-float-bits-reject-conv.rs:30:34
41 |
923072b8
FG
42LL | const_assert!(f32::from_bits(MASKED_NAN1).is_nan());
43 | ^^^^^^^^^^^ referenced constant has errors
923072b8 44
2b03887a
FG
45error[E0080]: evaluation of constant value failed
46 --> $DIR/const-float-bits-reject-conv.rs:32:34
923072b8 47 |
923072b8
FG
48LL | const_assert!(f32::from_bits(MASKED_NAN1).is_nan());
49 | ^^^^^^^^^^^ referenced constant has errors
923072b8 50
2b03887a
FG
51error[E0080]: evaluation of constant value failed
52 --> $DIR/const-float-bits-reject-conv.rs:39:38
923072b8 53 |
923072b8
FG
54LL | const_assert!(f32::from_bits(MASKED_NAN1).to_bits(), MASKED_NAN1);
55 | ^^^^^^^^^^^ referenced constant has errors
923072b8 56
2b03887a
FG
57error[E0080]: evaluation of constant value failed
58 --> $DIR/const-float-bits-reject-conv.rs:41:38
923072b8 59 |
923072b8
FG
60LL | const_assert!(f32::from_bits(MASKED_NAN2).to_bits(), MASKED_NAN2);
61 | ^^^^^^^^^^^ referenced constant has errors
923072b8 62
04454e1e
FG
63error[E0080]: evaluation of constant value failed
64 --> $SRC_DIR/core/src/num/f64.rs:LL:COL
65 |
66LL | panic!("const-eval error: cannot use f64::to_bits on a NaN")
67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68 | |
69 | the evaluated program panicked at 'const-eval error: cannot use f64::to_bits on a NaN', $SRC_DIR/core/src/num/f64.rs:LL:COL
70 | inside `core::f64::<impl f64>::to_bits::ct_f64_to_u64` at $SRC_DIR/core/src/panic.rs:LL:COL
71...
72LL | unsafe { intrinsics::const_eval_select((self,), ct_f64_to_u64, rt_f64_to_u64) }
73 | -------------------------------------------------------------------- inside `core::f64::<impl f64>::to_bits` at $SRC_DIR/core/src/num/f64.rs:LL:COL
74 |
2b03887a 75 ::: $DIR/const-float-bits-reject-conv.rs:50:30
04454e1e
FG
76 |
77LL | const MASKED_NAN1: u64 = f64::NAN.to_bits() ^ 0x000A_AAAA_AAAA_AAAA;
2b03887a 78 | ------------------ inside `f64::MASKED_NAN1` at $DIR/const-float-bits-reject-conv.rs:50:30
04454e1e 79 |
064997fb 80 = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
04454e1e
FG
81
82error[E0080]: evaluation of constant value failed
83 --> $SRC_DIR/core/src/num/f64.rs:LL:COL
84 |
85LL | panic!("const-eval error: cannot use f64::to_bits on a NaN")
86 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87 | |
88 | the evaluated program panicked at 'const-eval error: cannot use f64::to_bits on a NaN', $SRC_DIR/core/src/num/f64.rs:LL:COL
89 | inside `core::f64::<impl f64>::to_bits::ct_f64_to_u64` at $SRC_DIR/core/src/panic.rs:LL:COL
90...
91LL | unsafe { intrinsics::const_eval_select((self,), ct_f64_to_u64, rt_f64_to_u64) }
92 | -------------------------------------------------------------------- inside `core::f64::<impl f64>::to_bits` at $SRC_DIR/core/src/num/f64.rs:LL:COL
93 |
2b03887a 94 ::: $DIR/const-float-bits-reject-conv.rs:51:30
04454e1e
FG
95 |
96LL | const MASKED_NAN2: u64 = f64::NAN.to_bits() ^ 0x0005_5555_5555_5555;
2b03887a 97 | ------------------ inside `f64::MASKED_NAN2` at $DIR/const-float-bits-reject-conv.rs:51:30
04454e1e 98 |
064997fb 99 = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
04454e1e 100
2b03887a
FG
101error[E0080]: evaluation of constant value failed
102 --> $DIR/const-float-bits-reject-conv.rs:53:34
923072b8 103 |
923072b8
FG
104LL | const_assert!(f64::from_bits(MASKED_NAN1).is_nan());
105 | ^^^^^^^^^^^ referenced constant has errors
923072b8 106
2b03887a
FG
107error[E0080]: evaluation of constant value failed
108 --> $DIR/const-float-bits-reject-conv.rs:55:34
923072b8 109 |
923072b8
FG
110LL | const_assert!(f64::from_bits(MASKED_NAN1).is_nan());
111 | ^^^^^^^^^^^ referenced constant has errors
923072b8 112
2b03887a
FG
113error[E0080]: evaluation of constant value failed
114 --> $DIR/const-float-bits-reject-conv.rs:60:38
923072b8 115 |
923072b8
FG
116LL | const_assert!(f64::from_bits(MASKED_NAN1).to_bits(), MASKED_NAN1);
117 | ^^^^^^^^^^^ referenced constant has errors
923072b8 118
2b03887a
FG
119error[E0080]: evaluation of constant value failed
120 --> $DIR/const-float-bits-reject-conv.rs:62:38
923072b8 121 |
923072b8
FG
122LL | const_assert!(f64::from_bits(MASKED_NAN2).to_bits(), MASKED_NAN2);
123 | ^^^^^^^^^^^ referenced constant has errors
923072b8
FG
124
125error: aborting due to 12 previous errors
04454e1e
FG
126
127For more information about this error, try `rustc --explain E0080`.