Skip to content

Commit 0a03ec4

Browse files
committed
Cfg hide more conditions for alloc
1 parent 31b2eb1 commit 0a03ec4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

library/alloc/src/lib.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,12 @@
6969
)]
7070
#![cfg_attr(
7171
not(bootstrap),
72-
doc(cfg_hide(not(test), not(any(test, bootstrap)), target_has_atomic = "ptr"))
72+
doc(cfg_hide(
73+
not(test),
74+
not(any(test, bootstrap)),
75+
any(not(feature = "miri-test-libstd"), test, doctest),
76+
target_has_atomic = "ptr"
77+
))
7378
)]
7479
#![no_std]
7580
#![needs_allocator]

0 commit comments

Comments
 (0)