diff options
| author | Folkert <folkert@folkertdev.nl> | 2024-07-27 19:27:20 +0200 |
|---|---|---|
| committer | Folkert <folkert@folkertdev.nl> | 2024-07-27 19:27:20 +0200 |
| commit | 33b5ca99b7c61aa50ce1d973648bb610394576e8 (patch) | |
| tree | 2313f4c7e30ec7ba499e21b97af594dba56b3b33 | |
| parent | 3e4ddc39b8c47895b9086908ca4e9577a2c28142 (diff) | |
| download | rust-33b5ca99b7c61aa50ce1d973648bb610394576e8.tar.gz rust-33b5ca99b7c61aa50ce1d973648bb610394576e8.zip | |
add `needs-asm-support` to `tests/ui/asm/unsupported-option.rs`
| -rw-r--r-- | tests/ui/asm/unsupported-option.fixed | 1 | ||||
| -rw-r--r-- | tests/ui/asm/unsupported-option.rs | 1 | ||||
| -rw-r--r-- | tests/ui/asm/unsupported-option.stderr | 6 |
3 files changed, 5 insertions, 3 deletions
diff --git a/tests/ui/asm/unsupported-option.fixed b/tests/ui/asm/unsupported-option.fixed index f0d5ddb39d6..d313d8028b6 100644 --- a/tests/ui/asm/unsupported-option.fixed +++ b/tests/ui/asm/unsupported-option.fixed @@ -1,3 +1,4 @@ +//@ needs-asm-support //@ run-rustfix use std::arch::global_asm; diff --git a/tests/ui/asm/unsupported-option.rs b/tests/ui/asm/unsupported-option.rs index a852dcc4edd..d75f8e7f569 100644 --- a/tests/ui/asm/unsupported-option.rs +++ b/tests/ui/asm/unsupported-option.rs @@ -1,3 +1,4 @@ +//@ needs-asm-support //@ run-rustfix use std::arch::global_asm; diff --git a/tests/ui/asm/unsupported-option.stderr b/tests/ui/asm/unsupported-option.stderr index 1bcb98b8d49..7a6927152b6 100644 --- a/tests/ui/asm/unsupported-option.stderr +++ b/tests/ui/asm/unsupported-option.stderr @@ -1,17 +1,17 @@ error: the `nomem` option cannot be used with `global_asm!` - --> $DIR/unsupported-option.rs:7:25 + --> $DIR/unsupported-option.rs:8:25 | LL | global_asm!("", options(nomem, readonly, noreturn, raw)); | ^^^^^ the `nomem` option is not meaningful for global-scoped inline assembly error: the `readonly` option cannot be used with `global_asm!` - --> $DIR/unsupported-option.rs:7:32 + --> $DIR/unsupported-option.rs:8:32 | LL | global_asm!("", options(nomem, readonly, noreturn, raw)); | ^^^^^^^^ the `readonly` option is not meaningful for global-scoped inline assembly error: the `noreturn` option cannot be used with `global_asm!` - --> $DIR/unsupported-option.rs:7:42 + --> $DIR/unsupported-option.rs:8:42 | LL | global_asm!("", options(nomem, readonly, noreturn, raw)); | ^^^^^^^^ the `noreturn` option is not meaningful for global-scoped inline assembly |
