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