@@ -264,106 +264,124 @@ error: expected one of `)`, `att_syntax`, or `raw`, found `FOO`
264264LL | global_asm!("", options(FOO));
265265 | ^^^ expected one of `)`, `att_syntax`, or `raw`
266266
267- error: expected one of `)`, `att_syntax`, or `raw`, found `nomem `
267+ error: expected one of `)`, `att_syntax`, or `raw`, found `FOO `
268268 --> $DIR/parse-error.rs:115:25
269269 |
270- LL | global_asm!("", options(nomem FOO));
271- | ^^^^^ expected one of `)`, `att_syntax`, or `raw`
270+ LL | global_asm!("", options(FOO, ));
271+ | ^^^ expected one of `)`, `att_syntax`, or `raw`
272272
273- error: expected one of `)`, `att_syntax`, or `raw`, found `nomem `
273+ error: the `nomem` option cannot be used with `global_asm! `
274274 --> $DIR/parse-error.rs:117:25
275275 |
276+ LL | global_asm!("", options(nomem FOO));
277+ | ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly
278+
279+ error: expected one of `)` or `,`, found `FOO`
280+ --> $DIR/parse-error.rs:117:31
281+ |
282+ LL | global_asm!("", options(nomem FOO));
283+ | ^^^ expected one of `)` or `,`
284+
285+ error: the `nomem` option cannot be used with `global_asm!`
286+ --> $DIR/parse-error.rs:120:25
287+ |
288+ LL | global_asm!("", options(nomem, FOO));
289+ | ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly
290+
291+ error: expected one of `)`, `att_syntax`, or `raw`, found `FOO`
292+ --> $DIR/parse-error.rs:120:32
293+ |
276294LL | global_asm!("", options(nomem, FOO));
277- | ^^ ^^^ expected one of `)`, `att_syntax`, or `raw`
295+ | ^^^ expected one of `)`, `att_syntax`, or `raw`
278296
279297error: expected string literal
280- --> $DIR/parse-error.rs:120 :29
298+ --> $DIR/parse-error.rs:124 :29
281299 |
282300LL | global_asm!("", clobber_abi(FOO));
283301 | ^^^ not a string literal
284302
285303error: expected one of `)` or `,`, found `FOO`
286- --> $DIR/parse-error.rs:122 :33
304+ --> $DIR/parse-error.rs:126 :33
287305 |
288306LL | global_asm!("", clobber_abi("C" FOO));
289307 | ^^^ expected one of `)` or `,`
290308
291309error: expected string literal
292- --> $DIR/parse-error.rs:124 :34
310+ --> $DIR/parse-error.rs:128 :34
293311 |
294312LL | global_asm!("", clobber_abi("C", FOO));
295313 | ^^^ not a string literal
296314
297315error: `clobber_abi` cannot be used with `global_asm!`
298- --> $DIR/parse-error.rs:126 :19
316+ --> $DIR/parse-error.rs:130 :19
299317 |
300318LL | global_asm!("{}", clobber_abi("C"), const FOO);
301319 | ^^^^^^^^^^^^^^^^
302320
303321error: `clobber_abi` cannot be used with `global_asm!`
304- --> $DIR/parse-error.rs:128 :28
322+ --> $DIR/parse-error.rs:132 :28
305323 |
306324LL | global_asm!("", options(), clobber_abi("C"));
307325 | ^^^^^^^^^^^^^^^^
308326
309327error: `clobber_abi` cannot be used with `global_asm!`
310- --> $DIR/parse-error.rs:130 :30
328+ --> $DIR/parse-error.rs:134 :30
311329 |
312330LL | global_asm!("{}", options(), clobber_abi("C"), const FOO);
313331 | ^^^^^^^^^^^^^^^^
314332
315333error: `clobber_abi` cannot be used with `global_asm!`
316- --> $DIR/parse-error.rs:132 :17
334+ --> $DIR/parse-error.rs:136 :17
317335 |
318336LL | global_asm!("", clobber_abi("C"), clobber_abi("C"));
319337 | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
320338
321339error: duplicate argument named `a`
322- --> $DIR/parse-error.rs:134 :35
340+ --> $DIR/parse-error.rs:138 :35
323341 |
324342LL | global_asm!("{a}", a = const FOO, a = const BAR);
325343 | ------------- ^^^^^^^^^^^^^ duplicate argument
326344 | |
327345 | previously here
328346
329347error: argument never used
330- --> $DIR/parse-error.rs:134 :35
348+ --> $DIR/parse-error.rs:138 :35
331349 |
332350LL | global_asm!("{a}", a = const FOO, a = const BAR);
333351 | ^^^^^^^^^^^^^ argument never used
334352 |
335353 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`
336354
337355error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `""`
338- --> $DIR/parse-error.rs:137 :28
356+ --> $DIR/parse-error.rs:141 :28
339357 |
340358LL | global_asm!("", options(), "");
341359 | ^^ expected one of `clobber_abi`, `const`, `options`, or `sym`
342360
343361error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `"{}"`
344- --> $DIR/parse-error.rs:139 :30
362+ --> $DIR/parse-error.rs:143 :30
345363 |
346364LL | global_asm!("{}", const FOO, "{}", const FOO);
347365 | ^^^^ expected one of `clobber_abi`, `const`, `options`, or `sym`
348366
349367error: asm template must be a string literal
350- --> $DIR/parse-error.rs:141 :13
368+ --> $DIR/parse-error.rs:145 :13
351369 |
352370LL | global_asm!(format!("{{{}}}", 0), const FOO);
353371 | ^^^^^^^^^^^^^^^^^^^^
354372 |
355373 = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
356374
357375error: asm template must be a string literal
358- --> $DIR/parse-error.rs:143 :20
376+ --> $DIR/parse-error.rs:147 :20
359377 |
360378LL | global_asm!("{1}", format!("{{{}}}", 0), const FOO, const BAR);
361379 | ^^^^^^^^^^^^^^^^^^^^
362380 |
363381 = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
364382
365383error: expected operand, options, or additional template string
366- --> $DIR/parse-error.rs:145 :19
384+ --> $DIR/parse-error.rs:149 :19
367385 |
368386LL | global_asm!("{}", label {});
369387 | ^^^^^^^^ expected operand, options, or additional template string
@@ -423,6 +441,6 @@ help: consider using `const` instead of `let`
423441LL | const bar: /* Type */ = 0;
424442 | ~~~~~ ++++++++++++
425443
426- error: aborting due to 64 previous errors
444+ error: aborting due to 67 previous errors
427445
428446For more information about this error, try `rustc --explain E0435`.
0 commit comments