about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJorge Aparicio <jorge.aparicio@ferrous-systems.com>2024-06-20 17:42:40 +0200
committerJorge Aparicio <jorge.aparicio@ferrous-systems.com>2024-06-20 17:42:40 +0200
commitf42fa4f6e006d0d9eb90c7b10a9698dffb104174 (patch)
tree41b8c22978e889e5424349f6605124fca0e884bc
parent1aaab8b9f8dc488cadc4f083b3a11fb11b45cb77 (diff)
downloadrust-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.rs1
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;