11error: the `nomem` and `readonly` options are mutually exclusive
2- --> $DIR/bad-options.rs:8 :18
2+ --> $DIR/bad-options.rs:10 :18
33 |
44LL | asm!("", options(nomem, readonly));
55 | ^^^^^^^^^^^^^^^^^^^^^^^^
66
77error: the `pure` and `noreturn` options are mutually exclusive
8- --> $DIR/bad-options.rs:10 :18
8+ --> $DIR/bad-options.rs:12 :18
99 |
1010LL | asm!("", options(pure, nomem, noreturn));
1111 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212
1313error: asm with the `pure` option must have at least one output
14- --> $DIR/bad-options.rs:10 :18
14+ --> $DIR/bad-options.rs:12 :18
1515 |
1616LL | asm!("", options(pure, nomem, noreturn));
1717 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1818
1919error: asm with the `pure` option must have at least one output
20- --> $DIR/bad-options.rs:13 :33
20+ --> $DIR/bad-options.rs:15 :33
2121 |
2222LL | asm!("{}", in(reg) foo, options(pure, nomem));
2323 | ^^^^^^^^^^^^^^^^^^^^
2424
2525error: asm outputs are not allowed with the `noreturn` option
26- --> $DIR/bad-options.rs:15 :20
26+ --> $DIR/bad-options.rs:17 :20
2727 |
2828LL | asm!("{}", out(reg) foo, options(noreturn));
2929 | ^^^^^^^^^^^^
3030
31+ error: asm labels are not allowed with the `may_unwind` option
32+ --> $DIR/bad-options.rs:19:20
33+ |
34+ LL | asm!("{}", label {}, options(may_unwind));
35+ | ^^^^^^^^
36+
3137error: asm with `clobber_abi` must specify explicit registers for outputs
32- --> $DIR/bad-options.rs:22 :20
38+ --> $DIR/bad-options.rs:26 :20
3339 |
3440LL | asm!("{}", out(reg) foo, clobber_abi("C"));
3541 | ^^^^^^^^^^^^ ---------------- clobber_abi
3642 | |
3743 | generic outputs
3844
3945error: asm with `clobber_abi` must specify explicit registers for outputs
40- --> $DIR/bad-options.rs:24 :20
46+ --> $DIR/bad-options.rs:28 :20
4147 |
4248LL | asm!("{}", out(reg) foo, clobber_abi("C"), clobber_abi("C"));
4349 | ^^^^^^^^^^^^ ---------------- ---------------- clobber_abi
@@ -46,56 +52,56 @@ LL | asm!("{}", out(reg) foo, clobber_abi("C"), clobber_abi("C"));
4652 | generic outputs
4753
4854error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
49- --> $DIR/bad-options.rs:31 :25
55+ --> $DIR/bad-options.rs:35 :25
5056 |
5157LL | global_asm!("", options(nomem));
5258 | ^^^^^ expected one of `)`, `att_syntax`, or `raw`
5359
5460error: expected one of `)`, `att_syntax`, or `raw`, found `readonly`
55- --> $DIR/bad-options.rs:33 :25
61+ --> $DIR/bad-options.rs:37 :25
5662 |
5763LL | global_asm!("", options(readonly));
5864 | ^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
5965
6066error: expected one of `)`, `att_syntax`, or `raw`, found `noreturn`
61- --> $DIR/bad-options.rs:35 :25
67+ --> $DIR/bad-options.rs:39 :25
6268 |
6369LL | global_asm!("", options(noreturn));
6470 | ^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
6571
6672error: expected one of `)`, `att_syntax`, or `raw`, found `pure`
67- --> $DIR/bad-options.rs:37 :25
73+ --> $DIR/bad-options.rs:41 :25
6874 |
6975LL | global_asm!("", options(pure));
7076 | ^^^^ expected one of `)`, `att_syntax`, or `raw`
7177
7278error: expected one of `)`, `att_syntax`, or `raw`, found `nostack`
73- --> $DIR/bad-options.rs:39 :25
79+ --> $DIR/bad-options.rs:43 :25
7480 |
7581LL | global_asm!("", options(nostack));
7682 | ^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
7783
7884error: expected one of `)`, `att_syntax`, or `raw`, found `preserves_flags`
79- --> $DIR/bad-options.rs:41 :25
85+ --> $DIR/bad-options.rs:45 :25
8086 |
8187LL | global_asm!("", options(preserves_flags));
8288 | ^^^^^^^^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
8389
8490error: invalid ABI for `clobber_abi`
85- --> $DIR/bad-options.rs:20 :18
91+ --> $DIR/bad-options.rs:24 :18
8692 |
8793LL | asm!("", clobber_abi("foo"));
8894 | ^^^^^^^^^^^^^^^^^^
8995 |
9096 = note: the following ABIs are supported on this target: `C`, `system`, `efiapi`, `win64`, `sysv64`
9197
9298error: `C` ABI specified multiple times
93- --> $DIR/bad-options.rs:24 :52
99+ --> $DIR/bad-options.rs:28 :52
94100 |
95101LL | asm!("{}", out(reg) foo, clobber_abi("C"), clobber_abi("C"));
96102 | ---------------- ^^^^^^^^^^^^^^^^
97103 | |
98104 | previously specified here
99105
100- error: aborting due to 15 previous errors
106+ error: aborting due to 16 previous errors
101107
0 commit comments