about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorLoïc BRANSTETT <loic.branstett@epitech.eu>2021-10-08 17:11:57 +0200
committerLoïc BRANSTETT <loic.branstett@epitech.eu>2021-10-08 17:11:57 +0200
commit0a03ec4724b5196fece39229a11874f1d3a5cffe (patch)
tree8cd1632c74da0ab22693afd836707e8b33d9a6fe /library/alloc/src
parent31b2eb16e35fd46e5e04f2de92fb680d79c9e5e2 (diff)
downloadrust-0a03ec4724b5196fece39229a11874f1d3a5cffe.tar.gz
rust-0a03ec4724b5196fece39229a11874f1d3a5cffe.zip
Cfg hide more conditions for alloc
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/lib.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs
index 72fe84222de..dd04f782f94 100644
--- a/library/alloc/src/lib.rs
+++ b/library/alloc/src/lib.rs
@@ -69,7 +69,12 @@
 )]
 #![cfg_attr(
     not(bootstrap),
-    doc(cfg_hide(not(test), not(any(test, bootstrap)), target_has_atomic = "ptr"))
+    doc(cfg_hide(
+        not(test),
+        not(any(test, bootstrap)),
+        any(not(feature = "miri-test-libstd"), test, doctest),
+        target_has_atomic = "ptr"
+    ))
 )]
 #![no_std]
 #![needs_allocator]