Rollup merge of #102084 - andrewpollack:add-issue-panic-unwind, r=bjorn3

Adding needs-unwind for test using panic::catch_unwind

Adding needs-unwind for test using panic::catch_unwind

cc. `@djkoloski`

r? `@tmandry`
This commit is contained in:
Yuki Okushi 2022-09-22 09:03:56 +09:00 committed by GitHub
commit 3c6dbf911e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
// run-fail
// exec-env:RUST_BACKTRACE=0
// check-run-results
// needs-unwind uses catch_unwind
use std::sync::Once;
use std::panic;

View File

@ -1,3 +1,3 @@
thread 'main' panicked at 'Here Once instance is poisoned.', $DIR/issue-87707.rs:13:24
thread 'main' panicked at 'Here Once instance is poisoned.', $DIR/issue-87707.rs:14:24
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'Once instance has previously been poisoned', $DIR/issue-87707.rs:15:7
thread 'main' panicked at 'Once instance has previously been poisoned', $DIR/issue-87707.rs:16:7