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