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