Skip to content

Commit d018a8b

Browse files
author
Charisee
committed
remove mention of cfg_panic from library tests
1 parent 46ec73a commit d018a8b

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

library/core/tests/array.rs

-3
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ fn array_try_from_fn() {
392392
assert_eq!(another_array, Err(SomeError::Foo));
393393
}
394394

395-
#[cfg(not(panic = "abort"))]
396395
#[test]
397396
fn array_try_from_fn_drops_inserted_elements_on_err() {
398397
static DROP_COUNTER: AtomicUsize = AtomicUsize::new(0);
@@ -416,7 +415,6 @@ fn array_try_from_fn_drops_inserted_elements_on_err() {
416415
assert_eq!(DROP_COUNTER.load(Ordering::SeqCst), 2);
417416
}
418417

419-
#[cfg(not(panic = "abort"))]
420418
#[test]
421419
fn array_try_from_fn_drops_inserted_elements_on_panic() {
422420
static DROP_COUNTER: AtomicUsize = AtomicUsize::new(0);
@@ -440,7 +438,6 @@ fn array_try_from_fn_drops_inserted_elements_on_panic() {
440438
assert_eq!(DROP_COUNTER.load(Ordering::SeqCst), 2);
441439
}
442440

443-
#[cfg(not(panic = "abort"))]
444441
// https://stackoverflow.com/a/59211505
445442
fn catch_unwind_silent<F, R>(f: F) -> std::thread::Result<R>
446443
where

library/core/tests/iter/adapters/zip.rs

-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ fn test_zip_trusted_random_access_composition() {
233233
}
234234

235235
#[test]
236-
#[cfg(panic = "unwind")]
237236
fn test_zip_trusted_random_access_next_back_drop() {
238237
use std::panic::catch_unwind;
239238
use std::panic::AssertUnwindSafe;

library/core/tests/mem.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use core::mem::*;
22

3-
#[cfg(panic = "unwind")]
43
use std::rc::Rc;
54

65
#[test]
@@ -190,7 +189,6 @@ fn uninit_write_slice_cloned_panic_gt() {
190189
}
191190

192191
#[test]
193-
#[cfg(panic = "unwind")]
194192
fn uninit_write_slice_cloned_mid_panic() {
195193
use std::panic;
196194

0 commit comments

Comments
 (0)