Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 7c5b66f

Browse files
committed
Update duplicate options test
1 parent ac54265 commit 7c5b66f

File tree

2 files changed

+11
-53
lines changed

2 files changed

+11
-53
lines changed

src/test/ui/asm/duplicate-options.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,13 @@ fn main() {
66
unsafe {
77
asm!("", options(nomem, nomem));
88
//~^ ERROR the `nomem` option was already provided
9-
//~| HELP remove this option
109
asm!("", options(att_syntax, att_syntax));
1110
//~^ ERROR the `att_syntax` option was already provided
12-
//~| HELP remove this option
1311
asm!("", options(nostack, att_syntax), options(nostack));
1412
//~^ ERROR the `nostack` option was already provided
15-
//~| HELP remove this option
1613
asm!("", options(nostack, nostack), options(nostack), options(nostack));
1714
//~^ ERROR the `nostack` option was already provided
18-
//~| HELP remove this option
1915
//~| ERROR the `nostack` option was already provided
20-
//~| HELP remove this option
2116
//~| ERROR the `nostack` option was already provided
22-
//~| HELP remove this option
2317
}
2418
}

src/test/ui/asm/duplicate-options.stderr

Lines changed: 11 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,73 +2,37 @@ error: the `nomem` option was already provided
22
--> $DIR/duplicate-options.rs:7:33
33
|
44
LL | asm!("", options(nomem, nomem));
5-
| ^^^^^
6-
|
7-
help: remove this option
8-
--> $DIR/duplicate-options.rs:7:33
9-
|
10-
LL | asm!("", options(nomem, nomem));
11-
| ^^^^^
5+
| ^^^^^ remove this option
126

137
error: the `att_syntax` option was already provided
14-
--> $DIR/duplicate-options.rs:10:38
15-
|
16-
LL | asm!("", options(att_syntax, att_syntax));
17-
| ^^^^^^^^^^
18-
|
19-
help: remove this option
20-
--> $DIR/duplicate-options.rs:10:38
8+
--> $DIR/duplicate-options.rs:9:38
219
|
2210
LL | asm!("", options(att_syntax, att_syntax));
23-
| ^^^^^^^^^^
11+
| ^^^^^^^^^^ remove this option
2412

2513
error: the `nostack` option was already provided
26-
--> $DIR/duplicate-options.rs:13:56
27-
|
28-
LL | asm!("", options(nostack, att_syntax), options(nostack));
29-
| ^^^^^^^
30-
|
31-
help: remove this option
32-
--> $DIR/duplicate-options.rs:13:56
14+
--> $DIR/duplicate-options.rs:11:56
3315
|
3416
LL | asm!("", options(nostack, att_syntax), options(nostack));
35-
| ^^^^^^^
17+
| ^^^^^^^ remove this option
3618

3719
error: the `nostack` option was already provided
38-
--> $DIR/duplicate-options.rs:16:35
20+
--> $DIR/duplicate-options.rs:13:35
3921
|
4022
LL | asm!("", options(nostack, nostack), options(nostack), options(nostack));
41-
| ^^^^^^^
42-
|
43-
help: remove this option
44-
--> $DIR/duplicate-options.rs:16:35
45-
|
46-
LL | asm!("", options(nostack, nostack), options(nostack), options(nostack));
47-
| ^^^^^^^
23+
| ^^^^^^^ remove this option
4824

4925
error: the `nostack` option was already provided
50-
--> $DIR/duplicate-options.rs:16:53
26+
--> $DIR/duplicate-options.rs:13:53
5127
|
5228
LL | asm!("", options(nostack, nostack), options(nostack), options(nostack));
53-
| ^^^^^^^
54-
|
55-
help: remove this option
56-
--> $DIR/duplicate-options.rs:16:53
57-
|
58-
LL | asm!("", options(nostack, nostack), options(nostack), options(nostack));
59-
| ^^^^^^^
29+
| ^^^^^^^ remove this option
6030

6131
error: the `nostack` option was already provided
62-
--> $DIR/duplicate-options.rs:16:71
63-
|
64-
LL | asm!("", options(nostack, nostack), options(nostack), options(nostack));
65-
| ^^^^^^^
66-
|
67-
help: remove this option
68-
--> $DIR/duplicate-options.rs:16:71
32+
--> $DIR/duplicate-options.rs:13:71
6933
|
7034
LL | asm!("", options(nostack, nostack), options(nostack), options(nostack));
71-
| ^^^^^^^
35+
| ^^^^^^^ remove this option
7236

7337
error: aborting due to 6 previous errors
7438

0 commit comments

Comments
 (0)