diff options
| author | Ralf Jung <post@ralfj.de> | 2019-12-07 12:42:19 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-12-07 12:42:19 +0100 |
| commit | ca2ffe3a8030e0fb6593cb6905a371441a10a4e0 (patch) | |
| tree | 45b55f5202af5b3582b7f621ac937e1cb8d44dfa /src/liballoc/collections/vec_deque | |
| parent | 7ba1232b5ea8f6ab011efe2ce3fb97d955342fdb (diff) | |
| download | rust-ca2ffe3a8030e0fb6593cb6905a371441a10a4e0.tar.gz rust-ca2ffe3a8030e0fb6593cb6905a371441a10a4e0.zip | |
liballoc: ignore tests in Miri instead of removing them entirely
Diffstat (limited to 'src/liballoc/collections/vec_deque')
| -rw-r--r-- | src/liballoc/collections/vec_deque/tests.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/liballoc/collections/vec_deque/tests.rs b/src/liballoc/collections/vec_deque/tests.rs index 8dc097cc088..f2ce5b1d15d 100644 --- a/src/liballoc/collections/vec_deque/tests.rs +++ b/src/liballoc/collections/vec_deque/tests.rs @@ -3,7 +3,7 @@ use super::*; use ::test; #[bench] -#[cfg(not(miri))] // Miri does not support benchmarks +#[cfg_attr(miri, ignore)] // Miri does not support benchmarks fn bench_push_back_100(b: &mut test::Bencher) { let mut deq = VecDeque::with_capacity(101); b.iter(|| { @@ -16,7 +16,7 @@ fn bench_push_back_100(b: &mut test::Bencher) { } #[bench] -#[cfg(not(miri))] // Miri does not support benchmarks +#[cfg_attr(miri, ignore)] // Miri does not support benchmarks fn bench_push_front_100(b: &mut test::Bencher) { let mut deq = VecDeque::with_capacity(101); b.iter(|| { @@ -29,7 +29,7 @@ fn bench_push_front_100(b: &mut test::Bencher) { } #[bench] -#[cfg(not(miri))] // Miri does not support benchmarks +#[cfg_attr(miri, ignore)] // Miri does not support benchmarks fn bench_pop_back_100(b: &mut test::Bencher) { let mut deq = VecDeque::<i32>::with_capacity(101); @@ -43,7 +43,7 @@ fn bench_pop_back_100(b: &mut test::Bencher) { } #[bench] -#[cfg(not(miri))] // Miri does not support benchmarks +#[cfg_attr(miri, ignore)] // Miri does not support benchmarks fn bench_pop_front_100(b: &mut test::Bencher) { let mut deq = VecDeque::<i32>::with_capacity(101); |
