about summary refs log tree commit diff
path: root/src/liballoc/tests/vec.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/tests/vec.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/tests/vec.rs')
-rw-r--r--src/liballoc/tests/vec.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/tests/vec.rs b/src/liballoc/tests/vec.rs
index 9ee254f99ac..5e788d61f84 100644
--- a/src/liballoc/tests/vec.rs
+++ b/src/liballoc/tests/vec.rs
@@ -1080,7 +1080,7 @@ fn test_reserve_exact() {
 }
 
 #[test]
-#[cfg(not(miri))] // Miri does not support signalling OOM
+#[cfg_attr(miri, ignore)] // Miri does not support signalling OOM
 fn test_try_reserve() {
 
     // These are the interesting cases:
@@ -1183,7 +1183,7 @@ fn test_try_reserve() {
 }
 
 #[test]
-#[cfg(not(miri))] // Miri does not support signalling OOM
+#[cfg_attr(miri, ignore)] // Miri does not support signalling OOM
 fn test_try_reserve_exact() {
 
     // This is exactly the same as test_try_reserve with the method changed.