Skip to content

Commit

Permalink
ignore tests on miri instead of excluding them from compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Dec 7, 2019
1 parent 12507fe commit 22422d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ fn size_hint() {
}

#[test]
#[cfg(not(miri))]
#[cfg_attr(miri, ignore)]
fn size_hint_low_initial_capacities() {
#[derive(Debug, PartialEq, Eq)]
struct NonCopy(usize);
Expand All @@ -337,7 +337,7 @@ fn size_hint_low_initial_capacities() {
}

#[test]
#[cfg(not(miri))]
#[cfg_attr(miri, ignore)]
fn size_hint_high_initial_capacities() {
#[derive(Debug, PartialEq, Eq)]
struct NonCopy(usize);
Expand All @@ -356,7 +356,7 @@ fn size_hint_high_initial_capacities() {
}

#[test]
#[cfg(not(miri))]
#[cfg_attr(miri, ignore)]
fn size_hint_many_items() {
#[derive(Debug, PartialEq, Eq)]
struct NonCopy(usize);
Expand Down

0 comments on commit 22422d4

Please sign in to comment.