Skip to content

Commit 7323696

Browse files
committed
Fix aarch tests
1 parent c801593 commit 7323696

File tree

2 files changed

+15
-23
lines changed

2 files changed

+15
-23
lines changed

src/test/ui/asm/aarch64/parse-error.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ global_asm!("", options(), clobber_abi("C"));
119119
//~^ ERROR clobber_abi is not allowed after options
120120
global_asm!("{}", options(), clobber_abi("C"), const FOO);
121121
//~^ ERROR clobber_abi is not allowed after options
122-
global_asm!("", clobber_abi("C"), clobber_abi("C"));
123-
//~^ ERROR `clobber_abi` cannot be used with `global_asm!`
124122
global_asm!("{a}", a = const FOO, a = const BAR);
125123
//~^ ERROR duplicate argument named `a`
126124
//~^^ ERROR argument never used

src/test/ui/asm/aarch64/parse-error.stderr

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,17 @@ error: expected string literal
9696
LL | 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
|
102102
LL | 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
|
108108
LL | asm!("", clobber_abi("C", foo));
109-
| ^ expected `)`
109+
| ^^^ not a string literal
110110

111111
error: arguments are not allowed after clobber_abi
112112
--> $DIR/parse-error.rs:46:38
@@ -292,17 +292,17 @@ error: expected string literal
292292
LL | 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
|
298298
LL | 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
|
304304
LL | global_asm!("", clobber_abi("C", FOO));
305-
| ^ expected `)`
305+
| ^^^ not a string literal
306306

307307
error: 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-
343337
error: duplicate argument named `a`
344-
--> $DIR/parse-error.rs:124:35
338+
--> $DIR/parse-error.rs:122:35
345339
|
346340
LL | global_asm!("{a}", a = const FOO, a = const BAR);
347341
| ------------- ^^^^^^^^^^^^^ duplicate argument
348342
| |
349343
| previously here
350344

351345
error: argument never used
352-
--> $DIR/parse-error.rs:124:35
346+
--> $DIR/parse-error.rs:122:35
353347
|
354348
LL | 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

359353
error: expected one of `clobber_abi`, `const`, or `options`, found `""`
360-
--> $DIR/parse-error.rs:127:28
354+
--> $DIR/parse-error.rs:125:28
361355
|
362356
LL | global_asm!("", options(), "");
363357
| ^^ expected one of `clobber_abi`, `const`, or `options`
364358

365359
error: expected one of `clobber_abi`, `const`, or `options`, found `"{}"`
366-
--> $DIR/parse-error.rs:129:30
360+
--> $DIR/parse-error.rs:127:30
367361
|
368362
LL | global_asm!("{}", const FOO, "{}", const FOO);
369363
| ^^^^ expected one of `clobber_abi`, `const`, or `options`
370364

371365
error: asm template must be a string literal
372-
--> $DIR/parse-error.rs:131:13
366+
--> $DIR/parse-error.rs:129:13
373367
|
374368
LL | 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

379373
error: asm template must be a string literal
380-
--> $DIR/parse-error.rs:133:20
374+
--> $DIR/parse-error.rs:131:20
381375
|
382376
LL | global_asm!("{1}", format!("{{{}}}", 0), const FOO, const BAR);
383377
| ^^^^^^^^^^^^^^^^^^^^
@@ -447,6 +441,6 @@ LL | let mut bar = 0;
447441
LL | 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

452446
For more information about this error, try `rustc --explain E0435`.

0 commit comments

Comments
 (0)