@@ -82,111 +82,87 @@ error: expected one of `)`, `att_syntax`, `nomem`, `noreturn`, `nostack`, `prese
82
82
LL | asm!("", options(nomem, foo));
83
83
| ^^^ expected one of 8 possible tokens
84
84
85
- error: asm options cannot be specified multiple times
86
- --> $DIR/parse-error.rs:37:29
87
- |
88
- LL | asm!("", options(), options());
89
- | --------- ^^^^^^^^^ duplicate options
90
- | |
91
- | previously here
92
-
93
- error: asm options cannot be specified multiple times
94
- --> $DIR/parse-error.rs:39:29
95
- |
96
- LL | asm!("", options(), options(), options());
97
- | --------- ^^^^^^^^^ duplicate options
98
- | |
99
- | previously here
100
-
101
- error: asm options cannot be specified multiple times
102
- --> $DIR/parse-error.rs:39:40
103
- |
104
- LL | asm!("", options(), options(), options());
105
- | --------- ^^^^^^^^^ duplicate options
106
- | |
107
- | previously here
108
-
109
85
error: arguments are not allowed after options
110
- --> $DIR/parse-error.rs:42 :31
86
+ --> $DIR/parse-error.rs:37 :31
111
87
|
112
88
LL | asm!("{}", options(), const foo);
113
89
| --------- ^^^^^^^^^ argument
114
90
| |
115
91
| previous options
116
92
117
93
error: duplicate argument named `a`
118
- --> $DIR/parse-error.rs:44 :36
94
+ --> $DIR/parse-error.rs:39 :36
119
95
|
120
96
LL | asm!("{a}", a = const foo, a = const bar);
121
97
| ------------- ^^^^^^^^^^^^^ duplicate argument
122
98
| |
123
99
| previously here
124
100
125
101
error: argument never used
126
- --> $DIR/parse-error.rs:44 :36
102
+ --> $DIR/parse-error.rs:39 :36
127
103
|
128
104
LL | asm!("{a}", a = const foo, a = const bar);
129
105
| ^^^^^^^^^^^^^ argument never used
130
106
|
131
107
= help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`
132
108
133
109
error: explicit register arguments cannot have names
134
- --> $DIR/parse-error.rs:47 :18
110
+ --> $DIR/parse-error.rs:42 :18
135
111
|
136
112
LL | asm!("", a = in("eax") foo);
137
113
| ^^^^^^^^^^^^^^^^^
138
114
139
115
error: named arguments cannot follow explicit register arguments
140
- --> $DIR/parse-error.rs:49 :36
116
+ --> $DIR/parse-error.rs:44 :36
141
117
|
142
118
LL | asm!("{a}", in("eax") foo, a = const bar);
143
119
| ------------- ^^^^^^^^^^^^^ named argument
144
120
| |
145
121
| explicit register argument
146
122
147
123
error: named arguments cannot follow explicit register arguments
148
- --> $DIR/parse-error.rs:51 :36
124
+ --> $DIR/parse-error.rs:46 :36
149
125
|
150
126
LL | asm!("{a}", in("eax") foo, a = const bar);
151
127
| ------------- ^^^^^^^^^^^^^ named argument
152
128
| |
153
129
| explicit register argument
154
130
155
131
error: positional arguments cannot follow named arguments or explicit register arguments
156
- --> $DIR/parse-error.rs:53 :36
132
+ --> $DIR/parse-error.rs:48 :36
157
133
|
158
134
LL | asm!("{1}", in("eax") foo, const bar);
159
135
| ------------- ^^^^^^^^^ positional argument
160
136
| |
161
137
| explicit register argument
162
138
163
139
error: expected one of `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `""`
164
- --> $DIR/parse-error.rs:55 :29
140
+ --> $DIR/parse-error.rs:50 :29
165
141
|
166
142
LL | asm!("", options(), "");
167
143
| ^^ expected one of 8 possible tokens
168
144
169
145
error: expected one of `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `"{}"`
170
- --> $DIR/parse-error.rs:57 :33
146
+ --> $DIR/parse-error.rs:52 :33
171
147
|
172
148
LL | asm!("{}", in(reg) foo, "{}", out(reg) foo);
173
149
| ^^^^ expected one of 8 possible tokens
174
150
175
151
error: asm template must be a string literal
176
- --> $DIR/parse-error.rs:59 :14
152
+ --> $DIR/parse-error.rs:54 :14
177
153
|
178
154
LL | asm!(format!("{{{}}}", 0), in(reg) foo);
179
155
| ^^^^^^^^^^^^^^^^^^^^
180
156
|
181
157
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
182
158
183
159
error: asm template must be a string literal
184
- --> $DIR/parse-error.rs:61 :21
160
+ --> $DIR/parse-error.rs:56 :21
185
161
|
186
162
LL | asm!("{1}", format!("{{{}}}", 0), in(reg) foo, out(reg) bar);
187
163
| ^^^^^^^^^^^^^^^^^^^^
188
164
|
189
165
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
190
166
191
- error: aborting due to 28 previous errors
167
+ error: aborting due to 25 previous errors
192
168
0 commit comments