remove mention of cfg_panic from library tests
This commit is contained in:
parent
46ec73ac3a
commit
d018a8b624
@ -392,7 +392,6 @@ enum SomeError {
|
||||
assert_eq!(another_array, Err(SomeError::Foo));
|
||||
}
|
||||
|
||||
#[cfg(not(panic = "abort"))]
|
||||
#[test]
|
||||
fn array_try_from_fn_drops_inserted_elements_on_err() {
|
||||
static DROP_COUNTER: AtomicUsize = AtomicUsize::new(0);
|
||||
@ -416,7 +415,6 @@ fn drop(&mut self) {
|
||||
assert_eq!(DROP_COUNTER.load(Ordering::SeqCst), 2);
|
||||
}
|
||||
|
||||
#[cfg(not(panic = "abort"))]
|
||||
#[test]
|
||||
fn array_try_from_fn_drops_inserted_elements_on_panic() {
|
||||
static DROP_COUNTER: AtomicUsize = AtomicUsize::new(0);
|
||||
@ -440,7 +438,6 @@ fn drop(&mut self) {
|
||||
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
|
||||
|
@ -233,7 +233,6 @@ fn assert_trusted_random_access<T: TrustedRandomAccess>(_a: &T) {}
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(panic = "unwind")]
|
||||
fn test_zip_trusted_random_access_next_back_drop() {
|
||||
use std::panic::catch_unwind;
|
||||
use std::panic::AssertUnwindSafe;
|
||||
|
@ -1,6 +1,5 @@
|
||||
use core::mem::*;
|
||||
|
||||
#[cfg(panic = "unwind")]
|
||||
use std::rc::Rc;
|
||||
|
||||
#[test]
|
||||
@ -190,7 +189,6 @@ fn uninit_write_slice_cloned_panic_gt() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(panic = "unwind")]
|
||||
fn uninit_write_slice_cloned_mid_panic() {
|
||||
use std::panic;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user