1
Fork 0

add needs-unwind to UI test

the `tail-expr-lock-poisoning` UI test uses the `panic::catch_unwind`
API so it relies on unwinding being implemented. this test ought not to
run on targets that do not support unwinding. add the `needs-unwind`
attribute to signal this
This commit is contained in:
Jorge Aparicio 2024-06-20 17:42:40 +02:00
parent 1aaab8b9f8
commit f42fa4f6e0

View file

@ -3,6 +3,7 @@
//@ [edition2024] compile-flags: -Zunstable-options
//@ [edition2024] edition: 2024
//@ run-pass
//@ needs-unwind
#![cfg_attr(edition2024, feature(shorter_tail_lifetimes))]
use std::sync::Mutex;