Skip to content

Commit

Permalink
add needs-unwind to UI test
Browse files Browse the repository at this point in the history
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
  • Loading branch information
japaric committed Jun 20, 2024
1 parent 1aaab8b commit f42fa4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/ui/lifetimes/tail-expr-lock-poisoning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f42fa4f

Please sign in to comment.