Skip to content

Commit 33b5ca9

Browse files
committed
add needs-asm-support to tests/ui/asm/unsupported-option.rs
1 parent 3e4ddc3 commit 33b5ca9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

tests/ui/asm/unsupported-option.fixed

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-asm-support
12
//@ run-rustfix
23

34
use std::arch::global_asm;

tests/ui/asm/unsupported-option.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-asm-support
12
//@ run-rustfix
23

34
use std::arch::global_asm;

tests/ui/asm/unsupported-option.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
error: the `nomem` option cannot be used with `global_asm!`
2-
--> $DIR/unsupported-option.rs:7:25
2+
--> $DIR/unsupported-option.rs:8:25
33
|
44
LL | global_asm!("", options(nomem, readonly, noreturn, raw));
55
| ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly
66

77
error: the `readonly` option cannot be used with `global_asm!`
8-
--> $DIR/unsupported-option.rs:7:32
8+
--> $DIR/unsupported-option.rs:8:32
99
|
1010
LL | global_asm!("", options(nomem, readonly, noreturn, raw));
1111
| ^^^^^^^^ the `readonly` option is not meaningful for global-scoped inline assembly
1212

1313
error: the `noreturn` option cannot be used with `global_asm!`
14-
--> $DIR/unsupported-option.rs:7:42
14+
--> $DIR/unsupported-option.rs:8:42
1515
|
1616
LL | global_asm!("", options(nomem, readonly, noreturn, raw));
1717
| ^^^^^^^^ the `noreturn` option is not meaningful for global-scoped inline assembly

0 commit comments

Comments
 (0)