From 85c4a52807d6137505b0d1419cc800c210d79159 Mon Sep 17 00:00:00 2001 From: Caio Date: Fri, 8 Oct 2021 06:40:24 -0300 Subject: [PATCH] Also cfg flag auxiliar function --- library/core/tests/array.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/tests/array.rs b/library/core/tests/array.rs index 183f055baf117..b3af1328c90d4 100644 --- a/library/core/tests/array.rs +++ b/library/core/tests/array.rs @@ -424,6 +424,7 @@ fn array_try_from_fn_drops_inserted_elements_on_panic() { assert_eq!(DROP_COUNTER.load(Ordering::SeqCst), 2); } +#[cfg(not(panic = "abort"))] // https://stackoverflow.com/a/59211505 fn catch_unwind_silent(f: F) -> std::thread::Result where