@@ -96,17 +96,17 @@ error: expected string literal
96
96
LL | asm!("", clobber_abi(foo));
97
97
| ^^^ not a string literal
98
98
99
- error: expected `) `, found `foo`
99
+ error: expected one of `)` or `, `, found `foo`
100
100
--> $DIR/parse-error.rs:42:34
101
101
|
102
102
LL | asm!("", clobber_abi("C" foo));
103
- | ^^^ expected `) `
103
+ | ^^^ expected one of `)` or `, `
104
104
105
- error: expected `)`, found `,`
105
+ error: expected string literal
106
106
--> $DIR/parse-error.rs:44:33
107
107
|
108
108
LL | asm!("", clobber_abi("C", foo));
109
- | ^ expected `)`
109
+ | ^^^ not a string literal
110
110
111
111
error: arguments are not allowed after clobber_abi
112
112
--> $DIR/parse-error.rs:46:38
@@ -292,17 +292,17 @@ error: expected string literal
292
292
LL | global_asm!("", clobber_abi(FOO));
293
293
| ^^^ not a string literal
294
294
295
- error: expected `) `, found `FOO`
295
+ error: expected one of `)` or `, `, found `FOO`
296
296
--> $DIR/parse-error.rs:111:33
297
297
|
298
298
LL | global_asm!("", clobber_abi("C" FOO));
299
- | ^^^ expected `) `
299
+ | ^^^ expected one of `)` or `, `
300
300
301
- error: expected `)`, found `,`
301
+ error: expected string literal
302
302
--> $DIR/parse-error.rs:113:32
303
303
|
304
304
LL | global_asm!("", clobber_abi("C", FOO));
305
- | ^ expected `)`
305
+ | ^^^ not a string literal
306
306
307
307
error: arguments are not allowed after clobber_abi
308
308
--> $DIR/parse-error.rs:115:37
@@ -334,50 +334,44 @@ LL | global_asm!("{}", options(), clobber_abi("C"), const FOO);
334
334
| |
335
335
| options
336
336
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
-
343
337
error: duplicate argument named `a`
344
- --> $DIR/parse-error.rs:124 :35
338
+ --> $DIR/parse-error.rs:122 :35
345
339
|
346
340
LL | global_asm!("{a}", a = const FOO, a = const BAR);
347
341
| ------------- ^^^^^^^^^^^^^ duplicate argument
348
342
| |
349
343
| previously here
350
344
351
345
error: argument never used
352
- --> $DIR/parse-error.rs:124 :35
346
+ --> $DIR/parse-error.rs:122 :35
353
347
|
354
348
LL | global_asm!("{a}", a = const FOO, a = const BAR);
355
349
| ^^^^^^^^^^^^^ argument never used
356
350
|
357
351
= help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"`
358
352
359
353
error: expected one of `clobber_abi`, `const`, or `options`, found `""`
360
- --> $DIR/parse-error.rs:127 :28
354
+ --> $DIR/parse-error.rs:125 :28
361
355
|
362
356
LL | global_asm!("", options(), "");
363
357
| ^^ expected one of `clobber_abi`, `const`, or `options`
364
358
365
359
error: expected one of `clobber_abi`, `const`, or `options`, found `"{}"`
366
- --> $DIR/parse-error.rs:129 :30
360
+ --> $DIR/parse-error.rs:127 :30
367
361
|
368
362
LL | global_asm!("{}", const FOO, "{}", const FOO);
369
363
| ^^^^ expected one of `clobber_abi`, `const`, or `options`
370
364
371
365
error: asm template must be a string literal
372
- --> $DIR/parse-error.rs:131 :13
366
+ --> $DIR/parse-error.rs:129 :13
373
367
|
374
368
LL | global_asm!(format!("{{{}}}", 0), const FOO);
375
369
| ^^^^^^^^^^^^^^^^^^^^
376
370
|
377
371
= note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
378
372
379
373
error: asm template must be a string literal
380
- --> $DIR/parse-error.rs:133 :20
374
+ --> $DIR/parse-error.rs:131 :20
381
375
|
382
376
LL | global_asm!("{1}", format!("{{{}}}", 0), const FOO, const BAR);
383
377
| ^^^^^^^^^^^^^^^^^^^^
@@ -447,6 +441,6 @@ LL | let mut bar = 0;
447
441
LL | asm!("{1}", in("x0") foo, const bar);
448
442
| ^^^ non-constant value
449
443
450
- error: aborting due to 65 previous errors
444
+ error: aborting due to 66 previous errors
451
445
452
446
For more information about this error, try `rustc --explain E0435`.
0 commit comments