about summary refs log tree commit diff
path: root/src/liballoc/alloc/tests.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-12-07 12:42:19 +0100
committerRalf Jung <post@ralfj.de>2019-12-07 12:42:19 +0100
commitca2ffe3a8030e0fb6593cb6905a371441a10a4e0 (patch)
tree45b55f5202af5b3582b7f621ac937e1cb8d44dfa /src/liballoc/alloc/tests.rs
parent7ba1232b5ea8f6ab011efe2ce3fb97d955342fdb (diff)
downloadrust-ca2ffe3a8030e0fb6593cb6905a371441a10a4e0.tar.gz
rust-ca2ffe3a8030e0fb6593cb6905a371441a10a4e0.zip
liballoc: ignore tests in Miri instead of removing them entirely
Diffstat (limited to 'src/liballoc/alloc/tests.rs')
-rw-r--r--src/liballoc/alloc/tests.rs2
1 files changed, 1 insertions, 1 deletions
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;