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