Skip to content

Commit

Permalink
Also cfg flag auxiliar function
Browse files Browse the repository at this point in the history
  • Loading branch information
c410-f3r committed Oct 8, 2021
1 parent 91ad91e commit 85c4a52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/tests/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, R>(f: F) -> std::thread::Result<R>
where
Expand Down

0 comments on commit 85c4a52

Please sign in to comment.