1 error[E0080]: evaluation of constant value failed
2 --> $DIR/const-int-unchecked.rs:15:29
4 LL | const SHL_U8: u8 = unsafe { intrinsics::unchecked_shl(5_u8, 8) };
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 8 in `unchecked_shl`
7 error[E0080]: evaluation of constant value failed
8 --> $DIR/const-int-unchecked.rs:17:31
10 LL | const SHL_U16: u16 = unsafe { intrinsics::unchecked_shl(5_u16, 16) };
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 16 in `unchecked_shl`
13 error[E0080]: evaluation of constant value failed
14 --> $DIR/const-int-unchecked.rs:19:31
16 LL | const SHL_U32: u32 = unsafe { intrinsics::unchecked_shl(5_u32, 32) };
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 32 in `unchecked_shl`
19 error[E0080]: evaluation of constant value failed
20 --> $DIR/const-int-unchecked.rs:21:31
22 LL | const SHL_U64: u64 = unsafe { intrinsics::unchecked_shl(5_u64, 64) };
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 64 in `unchecked_shl`
25 error[E0080]: evaluation of constant value failed
26 --> $DIR/const-int-unchecked.rs:23:33
28 LL | const SHL_U128: u128 = unsafe { intrinsics::unchecked_shl(5_u128, 128) };
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 128 in `unchecked_shl`
31 error[E0080]: evaluation of constant value failed
32 --> $DIR/const-int-unchecked.rs:28:29
34 LL | const SHL_I8: i8 = unsafe { intrinsics::unchecked_shl(5_i8, 8) };
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 8 in `unchecked_shl`
37 error[E0080]: evaluation of constant value failed
38 --> $DIR/const-int-unchecked.rs:30:31
40 LL | const SHL_I16: i16 = unsafe { intrinsics::unchecked_shl(5_16, 16) };
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 16 in `unchecked_shl`
43 error[E0080]: evaluation of constant value failed
44 --> $DIR/const-int-unchecked.rs:32:31
46 LL | const SHL_I32: i32 = unsafe { intrinsics::unchecked_shl(5_i32, 32) };
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 32 in `unchecked_shl`
49 error[E0080]: evaluation of constant value failed
50 --> $DIR/const-int-unchecked.rs:34:31
52 LL | const SHL_I64: i64 = unsafe { intrinsics::unchecked_shl(5_i64, 64) };
53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 64 in `unchecked_shl`
55 error[E0080]: evaluation of constant value failed
56 --> $DIR/const-int-unchecked.rs:36:33
58 LL | const SHL_I128: i128 = unsafe { intrinsics::unchecked_shl(5_i128, 128) };
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 128 in `unchecked_shl`
61 error[E0080]: evaluation of constant value failed
62 --> $DIR/const-int-unchecked.rs:41:33
64 LL | const SHL_I8_NEG: i8 = unsafe { intrinsics::unchecked_shl(5_i8, -1) };
65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 255 in `unchecked_shl`
67 error[E0080]: evaluation of constant value failed
68 --> $DIR/const-int-unchecked.rs:43:35
70 LL | const SHL_I16_NEG: i16 = unsafe { intrinsics::unchecked_shl(5_16, -1) };
71 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 65535 in `unchecked_shl`
73 error[E0080]: evaluation of constant value failed
74 --> $DIR/const-int-unchecked.rs:45:35
76 LL | const SHL_I32_NEG: i32 = unsafe { intrinsics::unchecked_shl(5_i32, -1) };
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 4294967295 in `unchecked_shl`
79 error[E0080]: evaluation of constant value failed
80 --> $DIR/const-int-unchecked.rs:47:35
82 LL | const SHL_I64_NEG: i64 = unsafe { intrinsics::unchecked_shl(5_i64, -1) };
83 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 18446744073709551615 in `unchecked_shl`
85 error[E0080]: evaluation of constant value failed
86 --> $DIR/const-int-unchecked.rs:49:37
88 LL | const SHL_I128_NEG: i128 = unsafe { intrinsics::unchecked_shl(5_i128, -1) };
89 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 340282366920938463463374607431768211455 in `unchecked_shl`
91 error[E0080]: evaluation of constant value failed
92 --> $DIR/const-int-unchecked.rs:55:40
94 LL | const SHL_I8_NEG_RANDOM: i8 = unsafe { intrinsics::unchecked_shl(5_i8, -6) };
95 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 250 in `unchecked_shl`
97 error[E0080]: evaluation of constant value failed
98 --> $DIR/const-int-unchecked.rs:57:42
100 LL | const SHL_I16_NEG_RANDOM: i16 = unsafe { intrinsics::unchecked_shl(5_16, -13) };
101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 65523 in `unchecked_shl`
103 error[E0080]: evaluation of constant value failed
104 --> $DIR/const-int-unchecked.rs:59:42
106 LL | const SHL_I32_NEG_RANDOM: i32 = unsafe { intrinsics::unchecked_shl(5_i32, -25) };
107 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 4294967271 in `unchecked_shl`
109 error[E0080]: evaluation of constant value failed
110 --> $DIR/const-int-unchecked.rs:61:42
112 LL | const SHL_I64_NEG_RANDOM: i64 = unsafe { intrinsics::unchecked_shl(5_i64, -30) };
113 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 18446744073709551586 in `unchecked_shl`
115 error[E0080]: evaluation of constant value failed
116 --> $DIR/const-int-unchecked.rs:63:44
118 LL | const SHL_I128_NEG_RANDOM: i128 = unsafe { intrinsics::unchecked_shl(5_i128, -93) };
119 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 340282366920938463463374607431768211363 in `unchecked_shl`
121 error[E0080]: evaluation of constant value failed
122 --> $DIR/const-int-unchecked.rs:70:29
124 LL | const SHR_U8: u8 = unsafe { intrinsics::unchecked_shr(5_u8, 8) };
125 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 8 in `unchecked_shr`
127 error[E0080]: evaluation of constant value failed
128 --> $DIR/const-int-unchecked.rs:72:31
130 LL | const SHR_U16: u16 = unsafe { intrinsics::unchecked_shr(5_u16, 16) };
131 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 16 in `unchecked_shr`
133 error[E0080]: evaluation of constant value failed
134 --> $DIR/const-int-unchecked.rs:74:31
136 LL | const SHR_U32: u32 = unsafe { intrinsics::unchecked_shr(5_u32, 32) };
137 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 32 in `unchecked_shr`
139 error[E0080]: evaluation of constant value failed
140 --> $DIR/const-int-unchecked.rs:76:31
142 LL | const SHR_U64: u64 = unsafe { intrinsics::unchecked_shr(5_u64, 64) };
143 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 64 in `unchecked_shr`
145 error[E0080]: evaluation of constant value failed
146 --> $DIR/const-int-unchecked.rs:78:33
148 LL | const SHR_U128: u128 = unsafe { intrinsics::unchecked_shr(5_u128, 128) };
149 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 128 in `unchecked_shr`
151 error[E0080]: evaluation of constant value failed
152 --> $DIR/const-int-unchecked.rs:83:29
154 LL | const SHR_I8: i8 = unsafe { intrinsics::unchecked_shr(5_i8, 8) };
155 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 8 in `unchecked_shr`
157 error[E0080]: evaluation of constant value failed
158 --> $DIR/const-int-unchecked.rs:85:31
160 LL | const SHR_I16: i16 = unsafe { intrinsics::unchecked_shr(5_16, 16) };
161 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 16 in `unchecked_shr`
163 error[E0080]: evaluation of constant value failed
164 --> $DIR/const-int-unchecked.rs:87:31
166 LL | const SHR_I32: i32 = unsafe { intrinsics::unchecked_shr(5_i32, 32) };
167 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 32 in `unchecked_shr`
169 error[E0080]: evaluation of constant value failed
170 --> $DIR/const-int-unchecked.rs:89:31
172 LL | const SHR_I64: i64 = unsafe { intrinsics::unchecked_shr(5_i64, 64) };
173 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 64 in `unchecked_shr`
175 error[E0080]: evaluation of constant value failed
176 --> $DIR/const-int-unchecked.rs:91:33
178 LL | const SHR_I128: i128 = unsafe { intrinsics::unchecked_shr(5_i128, 128) };
179 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 128 in `unchecked_shr`
181 error[E0080]: evaluation of constant value failed
182 --> $DIR/const-int-unchecked.rs:96:33
184 LL | const SHR_I8_NEG: i8 = unsafe { intrinsics::unchecked_shr(5_i8, -1) };
185 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 255 in `unchecked_shr`
187 error[E0080]: evaluation of constant value failed
188 --> $DIR/const-int-unchecked.rs:98:35
190 LL | const SHR_I16_NEG: i16 = unsafe { intrinsics::unchecked_shr(5_16, -1) };
191 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 65535 in `unchecked_shr`
193 error[E0080]: evaluation of constant value failed
194 --> $DIR/const-int-unchecked.rs:100:35
196 LL | const SHR_I32_NEG: i32 = unsafe { intrinsics::unchecked_shr(5_i32, -1) };
197 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 4294967295 in `unchecked_shr`
199 error[E0080]: evaluation of constant value failed
200 --> $DIR/const-int-unchecked.rs:102:35
202 LL | const SHR_I64_NEG: i64 = unsafe { intrinsics::unchecked_shr(5_i64, -1) };
203 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 18446744073709551615 in `unchecked_shr`
205 error[E0080]: evaluation of constant value failed
206 --> $DIR/const-int-unchecked.rs:104:37
208 LL | const SHR_I128_NEG: i128 = unsafe { intrinsics::unchecked_shr(5_i128, -1) };
209 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 340282366920938463463374607431768211455 in `unchecked_shr`
211 error[E0080]: evaluation of constant value failed
212 --> $DIR/const-int-unchecked.rs:110:40
214 LL | const SHR_I8_NEG_RANDOM: i8 = unsafe { intrinsics::unchecked_shr(5_i8, -6) };
215 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 250 in `unchecked_shr`
217 error[E0080]: evaluation of constant value failed
218 --> $DIR/const-int-unchecked.rs:112:42
220 LL | const SHR_I16_NEG_RANDOM: i16 = unsafe { intrinsics::unchecked_shr(5_16, -13) };
221 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 65523 in `unchecked_shr`
223 error[E0080]: evaluation of constant value failed
224 --> $DIR/const-int-unchecked.rs:114:42
226 LL | const SHR_I32_NEG_RANDOM: i32 = unsafe { intrinsics::unchecked_shr(5_i32, -25) };
227 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 4294967271 in `unchecked_shr`
229 error[E0080]: evaluation of constant value failed
230 --> $DIR/const-int-unchecked.rs:116:42
232 LL | const SHR_I64_NEG_RANDOM: i64 = unsafe { intrinsics::unchecked_shr(5_i64, -30) };
233 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 18446744073709551586 in `unchecked_shr`
235 error[E0080]: evaluation of constant value failed
236 --> $DIR/const-int-unchecked.rs:118:44
238 LL | const SHR_I128_NEG_RANDOM: i128 = unsafe { intrinsics::unchecked_shr(5_i128, -93) };
239 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing shift by 340282366920938463463374607431768211363 in `unchecked_shr`
241 error[E0080]: evaluation of constant value failed
242 --> $DIR/const-int-unchecked.rs:123:25
244 LL | const _: u16 = unsafe { std::intrinsics::unchecked_add(40000u16, 30000) };
245 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow executing `unchecked_add`
247 error[E0080]: evaluation of constant value failed
248 --> $DIR/const-int-unchecked.rs:126:25
250 LL | const _: u32 = unsafe { std::intrinsics::unchecked_sub(14u32, 22) };
251 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow executing `unchecked_sub`
253 error[E0080]: evaluation of constant value failed
254 --> $DIR/const-int-unchecked.rs:129:25
256 LL | const _: u16 = unsafe { std::intrinsics::unchecked_mul(300u16, 250u16) };
257 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow executing `unchecked_mul`
259 error[E0080]: evaluation of constant value failed
260 --> $DIR/const-int-unchecked.rs:132:25
262 LL | const _: i32 = unsafe { std::intrinsics::unchecked_div(1, 0) };
263 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dividing by zero
265 error[E0080]: evaluation of constant value failed
266 --> $DIR/const-int-unchecked.rs:134:25
268 LL | const _: i32 = unsafe { std::intrinsics::unchecked_div(i32::MIN, -1) };
269 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow in signed division (dividing MIN by -1)
271 error[E0080]: evaluation of constant value failed
272 --> $DIR/const-int-unchecked.rs:137:25
274 LL | const _: i32 = unsafe { std::intrinsics::unchecked_rem(1, 0) };
275 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ calculating the remainder with a divisor of zero
277 error[E0080]: evaluation of constant value failed
278 --> $DIR/const-int-unchecked.rs:139:25
280 LL | const _: i32 = unsafe { std::intrinsics::unchecked_rem(i32::MIN, -1) };
281 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow in signed remainder (dividing MIN by -1)
283 error[E0080]: evaluation of constant value failed
284 --> $DIR/const-int-unchecked.rs:144:25
286 LL | const _: u32 = unsafe { std::intrinsics::ctlz_nonzero(0) };
287 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ctlz_nonzero` called on 0
289 error[E0080]: evaluation of constant value failed
290 --> $DIR/const-int-unchecked.rs:146:25
292 LL | const _: u32 = unsafe { std::intrinsics::cttz_nonzero(0) };
293 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `cttz_nonzero` called on 0
295 error: aborting due to 49 previous errors
297 For more information about this error, try `rustc --explain E0080`.