@@ -96,17 +96,17 @@ error: expected string literal
9696LL | asm!("", clobber_abi(foo));
9797 | ^^^ not a string literal
9898
99- error: expected `) `, found `foo`
99+ error: expected one of `)` or `, `, found `foo`
100100 --> $DIR/parse-error.rs:42:34
101101 |
102102LL | asm!("", clobber_abi("C" foo));
103- | ^^^ expected `) `
103+ | ^^^ expected one of `)` or `, `
104104
105- error: expected `)`, found `,`
105+ error: expected string literal
106106 --> $DIR/parse-error.rs:44:33
107107 |
108108LL | asm!("", clobber_abi("C", foo));
109- | ^ expected `)`
109+ | ^^^ not a string literal
110110
111111error: arguments are not allowed after clobber_abi
112112 --> $DIR/parse-error.rs:46:38
@@ -292,17 +292,17 @@ error: expected string literal
292292LL | global_asm!("", clobber_abi(FOO));
293293 | ^^^ not a string literal
294294
295- error: expected `) `, found `FOO`
295+ error: expected one of `)` or `, `, found `FOO`
296296 --> $DIR/parse-error.rs:111:33
297297 |
298298LL | global_asm!("", clobber_abi("C" FOO));
299- | ^^^ expected `) `
299+ | ^^^ expected one of `)` or `, `
300300
301- error: expected `)`, found `,`
301+ error: expected string literal
302302 --> $DIR/parse-error.rs:113:32
303303 |
304304LL | global_asm!("", clobber_abi("C", FOO));
305- | ^ expected `)`
305+ | ^^^ not a string literal
306306
307307error: arguments are not allowed after clobber_abi
308308 --> $DIR/parse-error.rs:115:37
@@ -334,50 +334,44 @@ LL | global_asm!("{}", options(), clobber_abi("C"), const FOO);
334334 | |
335335 | options
336336
337- error: `clobber_abi` cannot be used with `global_asm!`
338- --> $DIR/parse-error.rs:122:35
339- |
340- LL | global_asm!("", clobber_abi("C"), clobber_abi("C"));
341- | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
342-
343337error: duplicate argument named `a`
344- --> $DIR/parse-error.rs:124 :35
338+ --> $DIR/parse-error.rs:122 :35
345339 |
346340LL | global_asm!("{a}", a = const FOO, a = const BAR);
347341 | ------------- ^^^^^^^^^^^^^ duplicate argument
348342 | |
349343 | previously here
350344
351345error: argument never used
352- --> $DIR/parse-error.rs:124 :35
346+ --> $DIR/parse-error.rs:122 :35
353347 |
354348LL | global_asm!("{a}", a = const FOO, a = const BAR);
355349 | ^^^^^^^^^^^^^ argument never used
356350 |
357351 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`
358352
359353error: expected one of `clobber_abi`, `const`, or `options`, found `""`
360- --> $DIR/parse-error.rs:127 :28
354+ --> $DIR/parse-error.rs:125 :28
361355 |
362356LL | global_asm!("", options(), "");
363357 | ^^ expected one of `clobber_abi`, `const`, or `options`
364358
365359error: expected one of `clobber_abi`, `const`, or `options`, found `"{}"`
366- --> $DIR/parse-error.rs:129 :30
360+ --> $DIR/parse-error.rs:127 :30
367361 |
368362LL | global_asm!("{}", const FOO, "{}", const FOO);
369363 | ^^^^ expected one of `clobber_abi`, `const`, or `options`
370364
371365error: asm template must be a string literal
372- --> $DIR/parse-error.rs:131 :13
366+ --> $DIR/parse-error.rs:129 :13
373367 |
374368LL | global_asm!(format!("{{{}}}", 0), const FOO);
375369 | ^^^^^^^^^^^^^^^^^^^^
376370 |
377371 = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
378372
379373error: asm template must be a string literal
380- --> $DIR/parse-error.rs:133 :20
374+ --> $DIR/parse-error.rs:131 :20
381375 |
382376LL | global_asm!("{1}", format!("{{{}}}", 0), const FOO, const BAR);
383377 | ^^^^^^^^^^^^^^^^^^^^
@@ -447,6 +441,6 @@ LL | let mut bar = 0;
447441LL | asm!("{1}", in("x0") foo, const bar);
448442 | ^^^ non-constant value
449443
450- error: aborting due to 65 previous errors
444+ error: aborting due to 66 previous errors
451445
452446For more information about this error, try `rustc --explain E0435`.
0 commit comments