]> git.lizzy.rs Git - rust.git/commitdiff
Use `needs-unwind` instead of ignoring WASM/emscripten
authorBryan Garza <1396101+bryangarza@users.noreply.github.com>
Tue, 15 Nov 2022 01:07:18 +0000 (01:07 +0000)
committerBryan Garza <1396101+bryangarza@users.noreply.github.com>
Tue, 15 Nov 2022 01:08:40 +0000 (01:08 +0000)
src/test/ui/async-await/track-caller/panic-track-caller.rs

index 5884a1b4a8cfe8cc232010cd3fbdd24ee92abe29..b113c56412ff65322dc4646a9dd8593e4a863462 100644 (file)
@@ -1,8 +1,6 @@
 // run-pass
 // edition:2021
-
-// ignore-wasm no panic or subprocess support
-// ignore-emscripten no panic or subprocess support
+// needs-unwind
 #![feature(closure_track_caller)]
 
 use std::future::Future;
@@ -73,6 +71,6 @@ fn panicked_at(f: impl FnOnce() + panic::UnwindSafe) -> u32 {
 }
 
 fn main() {
-    assert_eq!(panicked_at(|| block_on(foo())), 43);
-    assert_eq!(panicked_at(|| block_on(foo_track_caller())), 56);
+    assert_eq!(panicked_at(|| block_on(foo())), 41);
+    assert_eq!(panicked_at(|| block_on(foo_track_caller())), 54);
 }