1
1
error: the `nomem` and `readonly` options are mutually exclusive
2
- --> $DIR/bad-options.rs:8 :18
2
+ --> $DIR/bad-options.rs:10 :18
3
3
|
4
4
LL | asm!("", options(nomem, readonly));
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^
6
6
7
7
error: the `pure` and `noreturn` options are mutually exclusive
8
- --> $DIR/bad-options.rs:10 :18
8
+ --> $DIR/bad-options.rs:12 :18
9
9
|
10
10
LL | asm!("", options(pure, nomem, noreturn));
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
12
13
13
error: 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
15
15
|
16
16
LL | asm!("", options(pure, nomem, noreturn));
17
17
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
18
19
19
error: 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
21
21
|
22
22
LL | asm!("{}", in(reg) foo, options(pure, nomem));
23
23
| ^^^^^^^^^^^^^^^^^^^^
24
24
25
25
error: asm outputs are not allowed with the `noreturn` option
26
- --> $DIR/bad-options.rs:15 :20
26
+ --> $DIR/bad-options.rs:17 :20
27
27
|
28
28
LL | asm!("{}", out(reg) foo, options(noreturn));
29
29
| ^^^^^^^^^^^^
30
30
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
+
31
37
error: asm with `clobber_abi` must specify explicit registers for outputs
32
- --> $DIR/bad-options.rs:22 :20
38
+ --> $DIR/bad-options.rs:26 :20
33
39
|
34
40
LL | asm!("{}", out(reg) foo, clobber_abi("C"));
35
41
| ^^^^^^^^^^^^ ---------------- clobber_abi
36
42
| |
37
43
| generic outputs
38
44
39
45
error: asm with `clobber_abi` must specify explicit registers for outputs
40
- --> $DIR/bad-options.rs:24 :20
46
+ --> $DIR/bad-options.rs:28 :20
41
47
|
42
48
LL | asm!("{}", out(reg) foo, clobber_abi("C"), clobber_abi("C"));
43
49
| ^^^^^^^^^^^^ ---------------- ---------------- clobber_abi
@@ -46,56 +52,56 @@ LL | asm!("{}", out(reg) foo, clobber_abi("C"), clobber_abi("C"));
46
52
| generic outputs
47
53
48
54
error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
49
- --> $DIR/bad-options.rs:31 :25
55
+ --> $DIR/bad-options.rs:35 :25
50
56
|
51
57
LL | global_asm!("", options(nomem));
52
58
| ^^^^^ expected one of `)`, `att_syntax`, or `raw`
53
59
54
60
error: expected one of `)`, `att_syntax`, or `raw`, found `readonly`
55
- --> $DIR/bad-options.rs:33 :25
61
+ --> $DIR/bad-options.rs:37 :25
56
62
|
57
63
LL | global_asm!("", options(readonly));
58
64
| ^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
59
65
60
66
error: expected one of `)`, `att_syntax`, or `raw`, found `noreturn`
61
- --> $DIR/bad-options.rs:35 :25
67
+ --> $DIR/bad-options.rs:39 :25
62
68
|
63
69
LL | global_asm!("", options(noreturn));
64
70
| ^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
65
71
66
72
error: expected one of `)`, `att_syntax`, or `raw`, found `pure`
67
- --> $DIR/bad-options.rs:37 :25
73
+ --> $DIR/bad-options.rs:41 :25
68
74
|
69
75
LL | global_asm!("", options(pure));
70
76
| ^^^^ expected one of `)`, `att_syntax`, or `raw`
71
77
72
78
error: expected one of `)`, `att_syntax`, or `raw`, found `nostack`
73
- --> $DIR/bad-options.rs:39 :25
79
+ --> $DIR/bad-options.rs:43 :25
74
80
|
75
81
LL | global_asm!("", options(nostack));
76
82
| ^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
77
83
78
84
error: expected one of `)`, `att_syntax`, or `raw`, found `preserves_flags`
79
- --> $DIR/bad-options.rs:41 :25
85
+ --> $DIR/bad-options.rs:45 :25
80
86
|
81
87
LL | global_asm!("", options(preserves_flags));
82
88
| ^^^^^^^^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
83
89
84
90
error: invalid ABI for `clobber_abi`
85
- --> $DIR/bad-options.rs:20 :18
91
+ --> $DIR/bad-options.rs:24 :18
86
92
|
87
93
LL | asm!("", clobber_abi("foo"));
88
94
| ^^^^^^^^^^^^^^^^^^
89
95
|
90
96
= note: the following ABIs are supported on this target: `C`, `system`, `efiapi`, `win64`, `sysv64`
91
97
92
98
error: `C` ABI specified multiple times
93
- --> $DIR/bad-options.rs:24 :52
99
+ --> $DIR/bad-options.rs:28 :52
94
100
|
95
101
LL | asm!("{}", out(reg) foo, clobber_abi("C"), clobber_abi("C"));
96
102
| ---------------- ^^^^^^^^^^^^^^^^
97
103
| |
98
104
| previously specified here
99
105
100
- error: aborting due to 15 previous errors
106
+ error: aborting due to 16 previous errors
101
107
0 commit comments