@@ -36,38 +36,47 @@ LL | asm!("{}", out(reg) foo, clobber_abi("C"));
36
36
| |
37
37
| generic outputs
38
38
39
+ error: asm with `clobber_abi` must specify explicit registers for outputs
40
+ --> $DIR/bad-options.rs:24:20
41
+ |
42
+ LL | asm!("{}", out(reg) foo, clobber_abi("C"), clobber_abi("C"));
43
+ | ^^^^^^^^^^^^ ---------------- ---------------- clobber_abi
44
+ | | |
45
+ | | clobber_abi
46
+ | generic outputs
47
+
39
48
error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
40
- --> $DIR/bad-options.rs:28 :25
49
+ --> $DIR/bad-options.rs:30 :25
41
50
|
42
51
LL | global_asm!("", options(nomem));
43
52
| ^^^^^ expected one of `)`, `att_syntax`, or `raw`
44
53
45
54
error: expected one of `)`, `att_syntax`, or `raw`, found `readonly`
46
- --> $DIR/bad-options.rs:30 :25
55
+ --> $DIR/bad-options.rs:32 :25
47
56
|
48
57
LL | global_asm!("", options(readonly));
49
58
| ^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
50
59
51
60
error: expected one of `)`, `att_syntax`, or `raw`, found `noreturn`
52
- --> $DIR/bad-options.rs:32 :25
61
+ --> $DIR/bad-options.rs:34 :25
53
62
|
54
63
LL | global_asm!("", options(noreturn));
55
64
| ^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
56
65
57
66
error: expected one of `)`, `att_syntax`, or `raw`, found `pure`
58
- --> $DIR/bad-options.rs:34 :25
67
+ --> $DIR/bad-options.rs:36 :25
59
68
|
60
69
LL | global_asm!("", options(pure));
61
70
| ^^^^ expected one of `)`, `att_syntax`, or `raw`
62
71
63
72
error: expected one of `)`, `att_syntax`, or `raw`, found `nostack`
64
- --> $DIR/bad-options.rs:36 :25
73
+ --> $DIR/bad-options.rs:38 :25
65
74
|
66
75
LL | global_asm!("", options(nostack));
67
76
| ^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
68
77
69
78
error: expected one of `)`, `att_syntax`, or `raw`, found `preserves_flags`
70
- --> $DIR/bad-options.rs:38 :25
79
+ --> $DIR/bad-options.rs:40 :25
71
80
|
72
81
LL | global_asm!("", options(preserves_flags));
73
82
| ^^^^^^^^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
@@ -80,5 +89,5 @@ LL | asm!("", clobber_abi("foo"));
80
89
|
81
90
= note: the following ABIs are supported on this target: `C`, `system`, `efiapi`, `win64`, `sysv64`
82
91
83
- error: aborting due to 13 previous errors
92
+ error: aborting due to 14 previous errors
84
93
0 commit comments