@@ -248,42 +248,84 @@ LL | extern "custom" fn negate(a: i64) -> i64 {
248
248
error: functions with the `"custom"` ABI cannot be called
249
249
--> $DIR/bad-custom.rs:75:14
250
250
|
251
+ LL | unsafe { f(x) }
252
+ | ^^^^
253
+ |
254
+ note: an `extern "custom"` function can only be called using inline assembly
255
+ --> $DIR/bad-custom.rs:75:14
256
+ |
251
257
LL | unsafe { f(x) }
252
258
| ^^^^
253
259
254
260
error: functions with the `"custom"` ABI cannot be called
255
261
--> $DIR/bad-custom.rs:80:14
256
262
|
263
+ LL | unsafe { f(x) }
264
+ | ^^^^
265
+ |
266
+ note: an `extern "custom"` function can only be called using inline assembly
267
+ --> $DIR/bad-custom.rs:80:14
268
+ |
257
269
LL | unsafe { f(x) }
258
270
| ^^^^
259
271
260
272
error: functions with the `"custom"` ABI cannot be called
261
273
--> $DIR/bad-custom.rs:87:14
262
274
|
275
+ LL | unsafe { f(x) }
276
+ | ^^^^
277
+ |
278
+ note: an `extern "custom"` function can only be called using inline assembly
279
+ --> $DIR/bad-custom.rs:87:14
280
+ |
263
281
LL | unsafe { f(x) }
264
282
| ^^^^
265
283
266
284
error: functions with the `"custom"` ABI cannot be called
267
285
--> $DIR/bad-custom.rs:109:20
268
286
|
287
+ LL | assert_eq!(double(21), 42);
288
+ | ^^^^^^^^^^
289
+ |
290
+ note: an `extern "custom"` function can only be called using inline assembly
291
+ --> $DIR/bad-custom.rs:109:20
292
+ |
269
293
LL | assert_eq!(double(21), 42);
270
294
| ^^^^^^^^^^
271
295
272
296
error: functions with the `"custom"` ABI cannot be called
273
297
--> $DIR/bad-custom.rs:112:29
274
298
|
299
+ LL | assert_eq!(unsafe { increment(41) }, 42);
300
+ | ^^^^^^^^^^^^^
301
+ |
302
+ note: an `extern "custom"` function can only be called using inline assembly
303
+ --> $DIR/bad-custom.rs:112:29
304
+ |
275
305
LL | assert_eq!(unsafe { increment(41) }, 42);
276
306
| ^^^^^^^^^^^^^
277
307
278
308
error: functions with the `"custom"` ABI cannot be called
279
309
--> $DIR/bad-custom.rs:115:17
280
310
|
311
+ LL | assert!(Thing(41).is_even());
312
+ | ^^^^^^^^^^^^^^^^^^^
313
+ |
314
+ note: an `extern "custom"` function can only be called using inline assembly
315
+ --> $DIR/bad-custom.rs:115:17
316
+ |
281
317
LL | assert!(Thing(41).is_even());
282
318
| ^^^^^^^^^^^^^^^^^^^
283
319
284
320
error: functions with the `"custom"` ABI cannot be called
285
321
--> $DIR/bad-custom.rs:118:20
286
322
|
323
+ LL | assert_eq!(Thing::bitwise_not(42), !42);
324
+ | ^^^^^^^^^^^^^^^^^^^^^^
325
+ |
326
+ note: an `extern "custom"` function can only be called using inline assembly
327
+ --> $DIR/bad-custom.rs:118:20
328
+ |
287
329
LL | assert_eq!(Thing::bitwise_not(42), !42);
288
330
| ^^^^^^^^^^^^^^^^^^^^^^
289
331
0 commit comments