about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-20 18:20:14 +0200
committerGitHub <noreply@github.com>2024-06-20 18:20:14 +0200
commit7b5ed5a66c7e1ec0d2d8ba3657a4048ceea36988 (patch)
treec5717d074f3622bbb518d2a5778c1d791f3c60cc
parentb0b2082432fbb74040697938a6854564c949b4b0 (diff)
parentf42fa4f6e006d0d9eb90c7b10a9698dffb104174 (diff)
downloadrust-7b5ed5a66c7e1ec0d2d8ba3657a4048ceea36988.tar.gz
rust-7b5ed5a66c7e1ec0d2d8ba3657a4048ceea36988.zip
Rollup merge of #126740 - ferrocene:ja-ui-test-needs-unwind, r=lcnr
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;