diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-10-30 16:05:25 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-10-30 16:32:53 +0000 |
| commit | 224ddf8fd9ee1d30053ae55a5d9fd49711b53360 (patch) | |
| tree | 0bd53f6e66fc1809f20903bc75c3ad42fbef73ef | |
| parent | bc926f7c33c5fa12a5d42c1c597245d047346fd6 (diff) | |
| download | rust-224ddf8fd9ee1d30053ae55a5d9fd49711b53360.tar.gz rust-224ddf8fd9ee1d30053ae55a5d9fd49711b53360.zip | |
Only run panic tests on targets that can unwind
| -rw-r--r-- | tests/ui/coroutine/gen_block_panic.rs | 1 | ||||
| -rw-r--r-- | tests/ui/coroutine/gen_block_panic.stderr | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/coroutine/gen_block_panic.rs b/tests/ui/coroutine/gen_block_panic.rs index 33e2b4b265a..2da0eb512cc 100644 --- a/tests/ui/coroutine/gen_block_panic.rs +++ b/tests/ui/coroutine/gen_block_panic.rs @@ -1,5 +1,6 @@ //compile-flags: --edition 2024 -Zunstable-options // run-pass +// needs-unwind #![feature(gen_blocks)] fn main() { diff --git a/tests/ui/coroutine/gen_block_panic.stderr b/tests/ui/coroutine/gen_block_panic.stderr index 33d2a95cab8..a0a6d1063c4 100644 --- a/tests/ui/coroutine/gen_block_panic.stderr +++ b/tests/ui/coroutine/gen_block_panic.stderr @@ -1,5 +1,5 @@ warning: unreachable statement - --> $DIR/gen_block_panic.rs:9:9 + --> $DIR/gen_block_panic.rs:10:9 | LL | panic!("foo"); | ------------- any code following this expression is unreachable |
