| error[E0080]: evaluation of constant value failed |
| --> $SRC_DIR/core/src/num/f32.rs:LL:COL |
| | |
| LL | panic!("const-eval error: cannot use f32::to_bits on a NaN") |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | | |
| | 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 |
| | inside `core::f32::<impl f32>::to_bits::ct_f32_to_u32` at $SRC_DIR/core/src/panic.rs:LL:COL |
| ... |
| LL | unsafe { intrinsics::const_eval_select((self,), ct_f32_to_u32, rt_f32_to_u32) } |
| | -------------------------------------------------------------------- inside `core::f32::<impl f32>::to_bits` at $SRC_DIR/core/src/num/f32.rs:LL:COL |
| | |
| ::: $SRC_DIR/core/src/ops/function.rs:LL:COL |
| | |
| LL | extern "rust-call" fn call_once(self, args: Args) -> Self::Output; |
| | ------------------------------------------------------------------ inside `<fn(f32) -> u32 {core::f32::<impl f32>::to_bits::ct_f32_to_u32} as FnOnce<(f32,)>>::call_once - shim(fn(f32) -> u32 {core::f32::<impl f32>::to_bits::ct_f32_to_u32})` at $SRC_DIR/core/src/ops/function.rs:LL:COL |
| | |
| ::: $SRC_DIR/core/src/intrinsics.rs:LL:COL |
| | |
| LL | called_in_const.call_once(arg) |
| | ------------------------------ inside `const_eval_select::<(f32,), fn(f32) -> u32 {core::f32::<impl f32>::to_bits::ct_f32_to_u32}, [closure@core::f32::<impl f32>::to_bits::{closure#0}], u32>` at $SRC_DIR/core/src/intrinsics.rs:LL:COL |
| | |
| ::: $DIR/const-float-bits-reject-conv.rs:27:30 |
| | |
| LL | const MASKED_NAN1: u32 = f32::NAN.to_bits() ^ 0x002A_AAAA; |
| | ------------------ inside `f32::MASKED_NAN1` at $DIR/const-float-bits-reject-conv.rs:27:30 |
| | |
| = note: this error originates in the macro `$crate::panic::panic_2021` (in Nightly builds, run with -Z macro-backtrace for more info) |
| |
| error[E0080]: evaluation of constant value failed |
| --> $SRC_DIR/core/src/num/f32.rs:LL:COL |
| | |
| LL | panic!("const-eval error: cannot use f32::to_bits on a NaN") |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | | |
| | 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 |
| | inside `core::f32::<impl f32>::to_bits::ct_f32_to_u32` at $SRC_DIR/core/src/panic.rs:LL:COL |
| ... |
| LL | unsafe { intrinsics::const_eval_select((self,), ct_f32_to_u32, rt_f32_to_u32) } |
| | -------------------------------------------------------------------- inside `core::f32::<impl f32>::to_bits` at $SRC_DIR/core/src/num/f32.rs:LL:COL |
| | |
| ::: $SRC_DIR/core/src/ops/function.rs:LL:COL |
| | |
| LL | extern "rust-call" fn call_once(self, args: Args) -> Self::Output; |
| | ------------------------------------------------------------------ inside `<fn(f32) -> u32 {core::f32::<impl f32>::to_bits::ct_f32_to_u32} as FnOnce<(f32,)>>::call_once - shim(fn(f32) -> u32 {core::f32::<impl f32>::to_bits::ct_f32_to_u32})` at $SRC_DIR/core/src/ops/function.rs:LL:COL |
| | |
| ::: $SRC_DIR/core/src/intrinsics.rs:LL:COL |
| | |
| LL | called_in_const.call_once(arg) |
| | ------------------------------ inside `const_eval_select::<(f32,), fn(f32) -> u32 {core::f32::<impl f32>::to_bits::ct_f32_to_u32}, [closure@core::f32::<impl f32>::to_bits::{closure#0}], u32>` at $SRC_DIR/core/src/intrinsics.rs:LL:COL |
| | |
| ::: $DIR/const-float-bits-reject-conv.rs:28:30 |
| | |
| LL | const MASKED_NAN2: u32 = f32::NAN.to_bits() ^ 0x0055_5555; |
| | ------------------ inside `f32::MASKED_NAN2` at $DIR/const-float-bits-reject-conv.rs:28:30 |
| | |
| = note: this error originates in the macro `$crate::panic::panic_2021` (in Nightly builds, run with -Z macro-backtrace for more info) |
| |
| error[E0080]: evaluation of constant value failed |
| --> $SRC_DIR/core/src/num/f64.rs:LL:COL |
| | |
| LL | panic!("const-eval error: cannot use f64::to_bits on a NaN") |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | | |
| | 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 |
| | inside `core::f64::<impl f64>::to_bits::ct_f64_to_u64` at $SRC_DIR/core/src/panic.rs:LL:COL |
| ... |
| LL | unsafe { intrinsics::const_eval_select((self,), ct_f64_to_u64, rt_f64_to_u64) } |
| | -------------------------------------------------------------------- inside `core::f64::<impl f64>::to_bits` at $SRC_DIR/core/src/num/f64.rs:LL:COL |
| | |
| ::: $SRC_DIR/core/src/ops/function.rs:LL:COL |
| | |
| LL | extern "rust-call" fn call_once(self, args: Args) -> Self::Output; |
| | ------------------------------------------------------------------ inside `<fn(f64) -> u64 {core::f64::<impl f64>::to_bits::ct_f64_to_u64} as FnOnce<(f64,)>>::call_once - shim(fn(f64) -> u64 {core::f64::<impl f64>::to_bits::ct_f64_to_u64})` at $SRC_DIR/core/src/ops/function.rs:LL:COL |
| | |
| ::: $SRC_DIR/core/src/intrinsics.rs:LL:COL |
| | |
| LL | called_in_const.call_once(arg) |
| | ------------------------------ inside `const_eval_select::<(f64,), fn(f64) -> u64 {core::f64::<impl f64>::to_bits::ct_f64_to_u64}, [closure@core::f64::<impl f64>::to_bits::{closure#0}], u64>` at $SRC_DIR/core/src/intrinsics.rs:LL:COL |
| | |
| ::: $DIR/const-float-bits-reject-conv.rs:46:30 |
| | |
| LL | const MASKED_NAN1: u64 = f64::NAN.to_bits() ^ 0x000A_AAAA_AAAA_AAAA; |
| | ------------------ inside `f64::MASKED_NAN1` at $DIR/const-float-bits-reject-conv.rs:46:30 |
| | |
| = note: this error originates in the macro `$crate::panic::panic_2021` (in Nightly builds, run with -Z macro-backtrace for more info) |
| |
| error[E0080]: evaluation of constant value failed |
| --> $SRC_DIR/core/src/num/f64.rs:LL:COL |
| | |
| LL | panic!("const-eval error: cannot use f64::to_bits on a NaN") |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | | |
| | 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 |
| | inside `core::f64::<impl f64>::to_bits::ct_f64_to_u64` at $SRC_DIR/core/src/panic.rs:LL:COL |
| ... |
| LL | unsafe { intrinsics::const_eval_select((self,), ct_f64_to_u64, rt_f64_to_u64) } |
| | -------------------------------------------------------------------- inside `core::f64::<impl f64>::to_bits` at $SRC_DIR/core/src/num/f64.rs:LL:COL |
| | |
| ::: $SRC_DIR/core/src/ops/function.rs:LL:COL |
| | |
| LL | extern "rust-call" fn call_once(self, args: Args) -> Self::Output; |
| | ------------------------------------------------------------------ inside `<fn(f64) -> u64 {core::f64::<impl f64>::to_bits::ct_f64_to_u64} as FnOnce<(f64,)>>::call_once - shim(fn(f64) -> u64 {core::f64::<impl f64>::to_bits::ct_f64_to_u64})` at $SRC_DIR/core/src/ops/function.rs:LL:COL |
| | |
| ::: $SRC_DIR/core/src/intrinsics.rs:LL:COL |
| | |
| LL | called_in_const.call_once(arg) |
| | ------------------------------ inside `const_eval_select::<(f64,), fn(f64) -> u64 {core::f64::<impl f64>::to_bits::ct_f64_to_u64}, [closure@core::f64::<impl f64>::to_bits::{closure#0}], u64>` at $SRC_DIR/core/src/intrinsics.rs:LL:COL |
| | |
| ::: $DIR/const-float-bits-reject-conv.rs:47:30 |
| | |
| LL | const MASKED_NAN2: u64 = f64::NAN.to_bits() ^ 0x0005_5555_5555_5555; |
| | ------------------ inside `f64::MASKED_NAN2` at $DIR/const-float-bits-reject-conv.rs:47:30 |
| | |
| = note: this error originates in the macro `$crate::panic::panic_2021` (in Nightly builds, run with -Z macro-backtrace for more info) |
| |
| error: aborting due to 4 previous errors |
| |
| For more information about this error, try `rustc --explain E0080`. |