From f42fa4f6e006d0d9eb90c7b10a9698dffb104174 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 20 Jun 2024 17:42:40 +0200 Subject: [PATCH] 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 --- tests/ui/lifetimes/tail-expr-lock-poisoning.rs | 1 + 1 file changed, 1 insertion(+) 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;