Skip to content

Commit

Permalink
Only run panic tests on targets that can unwind
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Oct 30, 2023
1 parent bc926f7 commit 224ddf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/ui/coroutine/gen_block_panic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//compile-flags: --edition 2024 -Zunstable-options
// run-pass
// needs-unwind
#![feature(gen_blocks)]

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/coroutine/gen_block_panic.stderr
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 224ddf8

Please sign in to comment.