@@ -66,15 +66,15 @@ LL | | }
66
66
| |_^
67
67
68
68
error: referencing function parameters is not allowed in naked functions
69
- --> $DIR/naked-functions.rs:41 :31
69
+ --> $DIR/naked-functions.rs:42 :31
70
70
|
71
71
LL | asm!("/* {0} */", in(reg) a, options(noreturn));
72
72
| ^
73
73
|
74
74
= help: follow the calling convention in asm block to use parameters
75
75
76
76
error[E0787]: only `const` and `sym` operands are supported in naked functions
77
- --> $DIR/naked-functions.rs:41 :23
77
+ --> $DIR/naked-functions.rs:42 :23
78
78
|
79
79
LL | asm!("/* {0} */", in(reg) a, options(noreturn));
80
80
| ^^^^^^^^^
@@ -298,16 +298,6 @@ error: naked functions cannot be inlined
298
298
LL | #[inline(never)]
299
299
| ^^^^^^^^^^^^^^^^
300
300
301
- warning: formatting may not be suitable for sub-register argument
302
- --> $DIR/naked-functions.rs:41:14
303
- |
304
- LL | asm!("/* {0} */", in(reg) a, options(noreturn));
305
- | ^^^ - for this argument
306
- |
307
- = note: `#[warn(asm_sub_register)]` on by default
308
- = help: use the `e` modifier to have the register formatted as `eax`
309
- = help: or use the `r` modifier to keep the default formatting of `rax`
310
-
311
- error: aborting due to 33 previous errors; 3 warnings emitted
301
+ error: aborting due to 33 previous errors; 2 warnings emitted
312
302
313
303
For more information about this error, try `rustc --explain E0787`.
0 commit comments