@@ -218,92 +218,104 @@ error: expected one of `)`, `att_syntax`, or `raw`, found `FOO`
218218LL | global_asm!("", options(FOO));
219219 | ^^^ expected one of `)`, `att_syntax`, or `raw`
220220
221- error: expected one of `)`, `att_syntax`, or `raw`, found `nomem `
221+ error: the `nomem` option cannot be used with `global_asm! `
222222 --> $DIR/parse-error.rs:99:25
223223 |
224224LL | global_asm!("", options(nomem FOO));
225- | ^^^^^ expected one of `)`, `att_syntax`, or `raw`
225+ | ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly
226226
227- error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
228- --> $DIR/parse-error.rs:101:25
227+ error: expected one of `)` or `,`, found `FOO`
228+ --> $DIR/parse-error.rs:99:31
229+ |
230+ LL | global_asm!("", options(nomem FOO));
231+ | ^^^ expected one of `)` or `,`
232+
233+ error: the `nomem` option cannot be used with `global_asm!`
234+ --> $DIR/parse-error.rs:102:25
235+ |
236+ LL | global_asm!("", options(nomem, FOO));
237+ | ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly
238+
239+ error: expected one of `)`, `att_syntax`, or `raw`, found `FOO`
240+ --> $DIR/parse-error.rs:102:32
229241 |
230242LL | global_asm!("", options(nomem, FOO));
231- | ^^ ^^^ expected one of `)`, `att_syntax`, or `raw`
243+ | ^^^ expected one of `)`, `att_syntax`, or `raw`
232244
233245error: expected string literal
234- --> $DIR/parse-error.rs:104 :29
246+ --> $DIR/parse-error.rs:106 :29
235247 |
236248LL | global_asm!("", clobber_abi(FOO));
237249 | ^^^ not a string literal
238250
239251error: expected one of `)` or `,`, found `FOO`
240- --> $DIR/parse-error.rs:106 :33
252+ --> $DIR/parse-error.rs:108 :33
241253 |
242254LL | global_asm!("", clobber_abi("C" FOO));
243255 | ^^^ expected one of `)` or `,`
244256
245257error: expected string literal
246- --> $DIR/parse-error.rs:108 :34
258+ --> $DIR/parse-error.rs:110 :34
247259 |
248260LL | global_asm!("", clobber_abi("C", FOO));
249261 | ^^^ not a string literal
250262
251263error: `clobber_abi` cannot be used with `global_asm!`
252- --> $DIR/parse-error.rs:110 :19
264+ --> $DIR/parse-error.rs:112 :19
253265 |
254266LL | global_asm!("{}", clobber_abi("C"), const FOO);
255267 | ^^^^^^^^^^^^^^^^
256268
257269error: `clobber_abi` cannot be used with `global_asm!`
258- --> $DIR/parse-error.rs:112 :28
270+ --> $DIR/parse-error.rs:114 :28
259271 |
260272LL | global_asm!("", options(), clobber_abi("C"));
261273 | ^^^^^^^^^^^^^^^^
262274
263275error: `clobber_abi` cannot be used with `global_asm!`
264- --> $DIR/parse-error.rs:114 :30
276+ --> $DIR/parse-error.rs:116 :30
265277 |
266278LL | global_asm!("{}", options(), clobber_abi("C"), const FOO);
267279 | ^^^^^^^^^^^^^^^^
268280
269281error: duplicate argument named `a`
270- --> $DIR/parse-error.rs:116 :35
282+ --> $DIR/parse-error.rs:118 :35
271283 |
272284LL | global_asm!("{a}", a = const FOO, a = const BAR);
273285 | ------------- ^^^^^^^^^^^^^ duplicate argument
274286 | |
275287 | previously here
276288
277289error: argument never used
278- --> $DIR/parse-error.rs:116 :35
290+ --> $DIR/parse-error.rs:118 :35
279291 |
280292LL | global_asm!("{a}", a = const FOO, a = const BAR);
281293 | ^^^^^^^^^^^^^ argument never used
282294 |
283295 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`
284296
285297error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `""`
286- --> $DIR/parse-error.rs:119 :28
298+ --> $DIR/parse-error.rs:121 :28
287299 |
288300LL | global_asm!("", options(), "");
289301 | ^^ expected one of `clobber_abi`, `const`, `options`, or `sym`
290302
291303error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `"{}"`
292- --> $DIR/parse-error.rs:121 :30
304+ --> $DIR/parse-error.rs:123 :30
293305 |
294306LL | global_asm!("{}", const FOO, "{}", const FOO);
295307 | ^^^^ expected one of `clobber_abi`, `const`, `options`, or `sym`
296308
297309error: asm template must be a string literal
298- --> $DIR/parse-error.rs:123 :13
310+ --> $DIR/parse-error.rs:125 :13
299311 |
300312LL | global_asm!(format!("{{{}}}", 0), const FOO);
301313 | ^^^^^^^^^^^^^^^^^^^^
302314 |
303315 = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
304316
305317error: asm template must be a string literal
306- --> $DIR/parse-error.rs:125 :20
318+ --> $DIR/parse-error.rs:127 :20
307319 |
308320LL | global_asm!("{1}", format!("{{{}}}", 0), const FOO, const BAR);
309321 | ^^^^^^^^^^^^^^^^^^^^
@@ -398,6 +410,6 @@ help: consider using `const` instead of `let`
398410LL | const bar: /* Type */ = 0;
399411 | ~~~~~ ++++++++++++
400412
401- error: aborting due to 57 previous errors
413+ error: aborting due to 59 previous errors
402414
403415For more information about this error, try `rustc --explain E0435`.
0 commit comments