Skip to content

Commit 79c06fc

Browse files
committed
Use needs-unwind instead of ignoring WASM/emscripten
1 parent b678e92 commit 79c06fc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/test/ui/async-await/track-caller/panic-track-caller.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// run-pass
22
// edition:2021
3-
4-
// ignore-wasm no panic or subprocess support
5-
// ignore-emscripten no panic or subprocess support
3+
// needs-unwind
64
#![feature(closure_track_caller)]
75

86
use std::future::Future;
@@ -73,6 +71,6 @@ fn panicked_at(f: impl FnOnce() + panic::UnwindSafe) -> u32 {
7371
}
7472

7573
fn main() {
76-
assert_eq!(panicked_at(|| block_on(foo())), 43);
77-
assert_eq!(panicked_at(|| block_on(foo_track_caller())), 56);
74+
assert_eq!(panicked_at(|| block_on(foo())), 41);
75+
assert_eq!(panicked_at(|| block_on(foo_track_caller())), 54);
7876
}

0 commit comments

Comments
 (0)