@@ -248,42 +248,84 @@ LL | extern "custom" fn negate(a: i64) -> i64 {
248248error: functions with the `"custom"` ABI cannot be called
249249 --> $DIR/bad-custom.rs:75:14
250250 |
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+ |
251257LL | unsafe { f(x) }
252258 | ^^^^
253259
254260error: functions with the `"custom"` ABI cannot be called
255261 --> $DIR/bad-custom.rs:80:14
256262 |
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+ |
257269LL | unsafe { f(x) }
258270 | ^^^^
259271
260272error: functions with the `"custom"` ABI cannot be called
261273 --> $DIR/bad-custom.rs:87:14
262274 |
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+ |
263281LL | unsafe { f(x) }
264282 | ^^^^
265283
266284error: functions with the `"custom"` ABI cannot be called
267285 --> $DIR/bad-custom.rs:109:20
268286 |
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+ |
269293LL | assert_eq!(double(21), 42);
270294 | ^^^^^^^^^^
271295
272296error: functions with the `"custom"` ABI cannot be called
273297 --> $DIR/bad-custom.rs:112:29
274298 |
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+ |
275305LL | assert_eq!(unsafe { increment(41) }, 42);
276306 | ^^^^^^^^^^^^^
277307
278308error: functions with the `"custom"` ABI cannot be called
279309 --> $DIR/bad-custom.rs:115:17
280310 |
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+ |
281317LL | assert!(Thing(41).is_even());
282318 | ^^^^^^^^^^^^^^^^^^^
283319
284320error: functions with the `"custom"` ABI cannot be called
285321 --> $DIR/bad-custom.rs:118:20
286322 |
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+ |
287329LL | assert_eq!(Thing::bitwise_not(42), !42);
288330 | ^^^^^^^^^^^^^^^^^^^^^^
289331
0 commit comments