Skip to content

Commit 224ddf8

Browse files
committed
Only run panic tests on targets that can unwind
1 parent bc926f7 commit 224ddf8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/ui/coroutine/gen_block_panic.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//compile-flags: --edition 2024 -Zunstable-options
22
// run-pass
3+
// needs-unwind
34
#![feature(gen_blocks)]
45

56
fn main() {

tests/ui/coroutine/gen_block_panic.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: unreachable statement
2-
--> $DIR/gen_block_panic.rs:9:9
2+
--> $DIR/gen_block_panic.rs:10:9
33
|
44
LL | panic!("foo");
55
| ------------- any code following this expression is unreachable

0 commit comments

Comments
 (0)