Skip to content

Commit 30a20f8

Browse files
Fix missing remaining compiler specific cfg information
1 parent 5728bd6 commit 30a20f8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

library/alloc/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
not(any(test, bootstrap)),
7575
any(not(feature = "miri-test-libstd"), test, doctest),
7676
no_global_oom_handling,
77+
not(no_global_oom_handling),
7778
target_has_atomic = "ptr"
7879
))
7980
)]

library/std/src/lib.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,15 @@
195195
test(no_crate_inject, attr(deny(warnings))),
196196
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
197197
)]
198-
#![cfg_attr(not(bootstrap), doc(cfg_hide(not(test), not(any(test, bootstrap)))))]
198+
#![cfg_attr(
199+
not(bootstrap),
200+
doc(cfg_hide(
201+
not(test),
202+
not(any(test, bootstrap)),
203+
no_global_oom_handling,
204+
not(no_global_oom_handling)
205+
))
206+
)]
199207
// Don't link to std. We are std.
200208
#![no_std]
201209
#![warn(deprecated_in_future)]

0 commit comments

Comments
 (0)