Skip to content

Commit 85c4a52

Browse files
committed
Also cfg flag auxiliar function
1 parent 91ad91e commit 85c4a52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/tests/array.rs

+1
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ fn array_try_from_fn_drops_inserted_elements_on_panic() {
424424
assert_eq!(DROP_COUNTER.load(Ordering::SeqCst), 2);
425425
}
426426

427+
#[cfg(not(panic = "abort"))]
427428
// https://stackoverflow.com/a/59211505
428429
fn catch_unwind_silent<F, R>(f: F) -> std::thread::Result<R>
429430
where

0 commit comments

Comments
 (0)