2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
2020-02-10 19:46:51 +00:00
|
|
|
--> $DIR/const-int-unchecked.rs:15:29
|
2018-09-06 11:13:07 +00:00
|
|
|
|
|
2018-12-29 11:56:14 +00:00
|
|
|
LL | const SHL_U8: u8 = unsafe { intrinsics::unchecked_shl(5_u8, 8) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 8 in `unchecked_shl`
|
2018-09-06 11:13:07 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:17:31
|
2018-09-06 11:13:07 +00:00
|
|
|
|
|
2018-12-29 11:56:14 +00:00
|
|
|
LL | const SHL_U16: u16 = unsafe { intrinsics::unchecked_shl(5_u16, 16) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 16 in `unchecked_shl`
|
2018-09-06 11:13:07 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:19:31
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHL_U32: u32 = unsafe { intrinsics::unchecked_shl(5_u32, 32) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 32 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:21:31
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHL_U64: u64 = unsafe { intrinsics::unchecked_shl(5_u64, 64) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 64 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:23:33
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHL_U128: u128 = unsafe { intrinsics::unchecked_shl(5_u128, 128) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 128 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:28:29
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHL_I8: i8 = unsafe { intrinsics::unchecked_shl(5_i8, 8) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 8 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:30:31
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
2024-03-30 07:36:45 +00:00
|
|
|
LL | const SHL_I16: i16 = unsafe { intrinsics::unchecked_shl(5_i16, 16) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 16 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:32:31
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHL_I32: i32 = unsafe { intrinsics::unchecked_shl(5_i32, 32) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 32 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:34:31
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHL_I64: i64 = unsafe { intrinsics::unchecked_shl(5_i64, 64) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 64 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:36:33
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHL_I128: i128 = unsafe { intrinsics::unchecked_shl(5_i128, 128) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 128 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:41:33
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHL_I8_NEG: i8 = unsafe { intrinsics::unchecked_shl(5_i8, -1) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -1 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:43:35
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
2024-03-30 07:36:45 +00:00
|
|
|
LL | const SHL_I16_NEG: i16 = unsafe { intrinsics::unchecked_shl(5_i16, -1) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -1 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:45:35
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHL_I32_NEG: i32 = unsafe { intrinsics::unchecked_shl(5_i32, -1) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -1 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:47:35
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHL_I64_NEG: i64 = unsafe { intrinsics::unchecked_shl(5_i64, -1) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -1 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:49:37
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHL_I128_NEG: i128 = unsafe { intrinsics::unchecked_shl(5_i128, -1) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -1 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:55:40
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHL_I8_NEG_RANDOM: i8 = unsafe { intrinsics::unchecked_shl(5_i8, -6) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -6 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:57:42
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
2024-03-30 07:36:45 +00:00
|
|
|
LL | const SHL_I16_NEG_RANDOM: i16 = unsafe { intrinsics::unchecked_shl(5_i16, -13) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -13 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:59:42
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHL_I32_NEG_RANDOM: i32 = unsafe { intrinsics::unchecked_shl(5_i32, -25) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -25 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:61:42
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHL_I64_NEG_RANDOM: i64 = unsafe { intrinsics::unchecked_shl(5_i64, -30) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -30 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:63:44
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHL_I128_NEG_RANDOM: i128 = unsafe { intrinsics::unchecked_shl(5_i128, -93) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -93 in `unchecked_shl`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:70:29
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_U8: u8 = unsafe { intrinsics::unchecked_shr(5_u8, 8) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 8 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:72:31
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_U16: u16 = unsafe { intrinsics::unchecked_shr(5_u16, 16) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 16 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:74:31
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_U32: u32 = unsafe { intrinsics::unchecked_shr(5_u32, 32) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 32 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:76:31
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_U64: u64 = unsafe { intrinsics::unchecked_shr(5_u64, 64) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 64 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:78:33
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_U128: u128 = unsafe { intrinsics::unchecked_shr(5_u128, 128) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 128 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:83:29
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_I8: i8 = unsafe { intrinsics::unchecked_shr(5_i8, 8) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 8 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:85:31
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
2024-03-30 07:36:45 +00:00
|
|
|
LL | const SHR_I16: i16 = unsafe { intrinsics::unchecked_shr(5_i16, 16) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 16 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:87:31
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_I32: i32 = unsafe { intrinsics::unchecked_shr(5_i32, 32) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 32 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:89:31
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_I64: i64 = unsafe { intrinsics::unchecked_shr(5_i64, 64) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 64 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:91:33
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_I128: i128 = unsafe { intrinsics::unchecked_shr(5_i128, 128) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 128 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:96:33
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_I8_NEG: i8 = unsafe { intrinsics::unchecked_shr(5_i8, -1) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -1 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:98:35
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
2024-03-30 07:36:45 +00:00
|
|
|
LL | const SHR_I16_NEG: i16 = unsafe { intrinsics::unchecked_shr(5_i16, -1) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -1 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:100:35
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_I32_NEG: i32 = unsafe { intrinsics::unchecked_shr(5_i32, -1) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -1 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:102:35
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_I64_NEG: i64 = unsafe { intrinsics::unchecked_shr(5_i64, -1) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -1 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:104:37
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_I128_NEG: i128 = unsafe { intrinsics::unchecked_shr(5_i128, -1) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -1 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:110:40
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_I8_NEG_RANDOM: i8 = unsafe { intrinsics::unchecked_shr(5_i8, -6) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -6 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:112:42
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
2024-03-30 07:36:45 +00:00
|
|
|
LL | const SHR_I16_NEG_RANDOM: i16 = unsafe { intrinsics::unchecked_shr(5_i16, -13) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -13 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:114:42
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_I32_NEG_RANDOM: i32 = unsafe { intrinsics::unchecked_shr(5_i32, -25) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -25 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:116:42
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_I64_NEG_RANDOM: i64 = unsafe { intrinsics::unchecked_shr(5_i64, -30) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -30 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:118:44
|
2018-12-29 11:56:14 +00:00
|
|
|
|
|
|
|
|
LL | const SHR_I128_NEG_RANDOM: i128 = unsafe { intrinsics::unchecked_shr(5_i128, -93) };
|
2023-11-12 11:16:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by -93 in `unchecked_shr`
|
2018-12-29 11:56:14 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:123:25
|
2020-02-10 19:46:51 +00:00
|
|
|
|
|
|
|
|
LL | const _: u16 = unsafe { std::intrinsics::unchecked_add(40000u16, 30000) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow executing `unchecked_add`
|
2020-02-10 19:46:51 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:126:25
|
2020-02-10 19:46:51 +00:00
|
|
|
|
|
|
|
|
LL | const _: u32 = unsafe { std::intrinsics::unchecked_sub(14u32, 22) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow executing `unchecked_sub`
|
2020-02-10 19:46:51 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:129:25
|
2020-02-10 19:46:51 +00:00
|
|
|
|
|
|
|
|
LL | const _: u16 = unsafe { std::intrinsics::unchecked_mul(300u16, 250u16) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow executing `unchecked_mul`
|
2020-02-10 19:46:51 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:132:25
|
2020-02-10 19:46:51 +00:00
|
|
|
|
|
|
|
|
LL | const _: i32 = unsafe { std::intrinsics::unchecked_div(1, 0) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dividing by zero
|
2020-02-10 19:46:51 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:134:25
|
2020-02-10 19:46:51 +00:00
|
|
|
|
|
2020-06-02 07:59:11 +00:00
|
|
|
LL | const _: i32 = unsafe { std::intrinsics::unchecked_div(i32::MIN, -1) };
|
2022-03-02 01:02:59 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow in signed division (dividing MIN by -1)
|
2020-02-10 19:46:51 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:137:25
|
2020-02-10 19:46:51 +00:00
|
|
|
|
|
|
|
|
LL | const _: i32 = unsafe { std::intrinsics::unchecked_rem(1, 0) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ calculating the remainder with a divisor of zero
|
2020-02-10 19:46:51 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:139:25
|
2020-02-10 19:46:51 +00:00
|
|
|
|
|
2020-06-02 07:59:11 +00:00
|
|
|
LL | const _: i32 = unsafe { std::intrinsics::unchecked_rem(i32::MIN, -1) };
|
2022-03-02 01:02:59 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow in signed remainder (dividing MIN by -1)
|
2020-02-10 19:46:51 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:144:25
|
2021-04-11 16:38:05 +00:00
|
|
|
|
|
|
|
|
LL | const _: u32 = unsafe { std::intrinsics::ctlz_nonzero(0) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ctlz_nonzero` called on 0
|
2021-04-11 16:38:05 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-int-unchecked.rs:146:25
|
2021-04-11 16:38:05 +00:00
|
|
|
|
|
|
|
|
LL | const _: u32 = unsafe { std::intrinsics::cttz_nonzero(0) };
|
2021-06-18 17:31:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `cttz_nonzero` called on 0
|
2021-04-11 16:38:05 +00:00
|
|
|
|
|
|
|
error: aborting due to 49 previous errors
|
2018-09-06 11:13:07 +00:00
|
|
|
|
2021-06-18 17:31:56 +00:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|