diff options
| author | Jorge Aparicio <jorge.aparicio@ferrous-systems.com> | 2024-06-20 17:42:40 +0200 |
|---|---|---|
| committer | Jorge Aparicio <jorge.aparicio@ferrous-systems.com> | 2024-06-20 17:42:40 +0200 |
| commit | f42fa4f6e006d0d9eb90c7b10a9698dffb104174 (patch) | |
| tree | 41b8c22978e889e5424349f6605124fca0e884bc | |
| parent | 1aaab8b9f8dc488cadc4f083b3a11fb11b45cb77 (diff) | |
| download | rust-f42fa4f6e006d0d9eb90c7b10a9698dffb104174.tar.gz rust-f42fa4f6e006d0d9eb90c7b10a9698dffb104174.zip | |
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
| -rw-r--r-- | tests/ui/lifetimes/tail-expr-lock-poisoning.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/lifetimes/tail-expr-lock-poisoning.rs b/tests/ui/lifetimes/tail-expr-lock-poisoning.rs index 69b8f286d77..cdfd35304b4 100644 --- a/tests/ui/lifetimes/tail-expr-lock-poisoning.rs +++ b/tests/ui/lifetimes/tail-expr-lock-poisoning.rs @@ -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; |
