Skip to content

Commit 4ccc1a2

Browse files
committed
use cfg_attr-ignore instead of cfg(not)
1 parent 3ad7eec commit 4ccc1a2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/map.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2625,7 +2625,6 @@ mod test_map {
26252625
use super::DefaultHashBuilder;
26262626
use super::Entry::{Occupied, Vacant};
26272627
use super::{HashMap, RawEntryMut};
2628-
#[cfg(not(miri))]
26292628
use crate::CollectionAllocErr::*;
26302629
use rand::{rngs::SmallRng, Rng, SeedableRng};
26312630
use std::cell::RefCell;
@@ -2883,7 +2882,7 @@ mod test_map {
28832882
}
28842883

28852884
#[test]
2886-
#[cfg(not(miri))] // FIXME: takes too long
2885+
#[cfg_attr(miri, ignore)] // FIXME: takes too long
28872886
fn test_lots_of_insertions() {
28882887
let mut m = HashMap::new();
28892888

@@ -3490,7 +3489,7 @@ mod test_map {
34903489
}
34913490

34923491
#[test]
3493-
#[cfg(not(miri))] // FIXME: no OOM signalling (https://github.com/rust-lang/miri/issues/613)
3492+
#[cfg_attr(miri, ignore)] // FIXME: no OOM signalling (https://github.com/rust-lang/miri/issues/613)
34943493
fn test_try_reserve() {
34953494
let mut empty_bytes: HashMap<u8, u8> = HashMap::new();
34963495

0 commit comments

Comments
 (0)