From ca2ffe3a8030e0fb6593cb6905a371441a10a4e0 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 7 Dec 2019 12:42:19 +0100 Subject: liballoc: ignore tests in Miri instead of removing them entirely --- src/liballoc/alloc/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/liballoc/alloc') diff --git a/src/liballoc/alloc/tests.rs b/src/liballoc/alloc/tests.rs index 956298d7836..c902971638b 100644 --- a/src/liballoc/alloc/tests.rs +++ b/src/liballoc/alloc/tests.rs @@ -22,7 +22,7 @@ fn allocate_zeroed() { } #[bench] -#[cfg(not(miri))] // Miri does not support benchmarks +#[cfg_attr(miri, ignore)] // Miri does not support benchmarks fn alloc_owned_small(b: &mut Bencher) { b.iter(|| { let _: Box<_> = box 10; -- cgit 1.4.1-3-g733a5