diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-10-14 11:39:30 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-10-14 11:39:30 +0200 |
| commit | 30a20f8c83161b17be9d550b1d4fd458c05117a3 (patch) | |
| tree | b2158b2adf104f3ebea99e04f6f5549fed6dfb84 | |
| parent | 5728bd64b49b0e78d0180efed75ef0870ae60266 (diff) | |
| download | rust-30a20f8c83161b17be9d550b1d4fd458c05117a3.tar.gz rust-30a20f8c83161b17be9d550b1d4fd458c05117a3.zip | |
Fix missing remaining compiler specific cfg information
| -rw-r--r-- | library/alloc/src/lib.rs | 1 | ||||
| -rw-r--r-- | library/std/src/lib.rs | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs index 89ab11fb97e..e86c41b1ff8 100644 --- a/library/alloc/src/lib.rs +++ b/library/alloc/src/lib.rs @@ -74,6 +74,7 @@ not(any(test, bootstrap)), any(not(feature = "miri-test-libstd"), test, doctest), no_global_oom_handling, + not(no_global_oom_handling), target_has_atomic = "ptr" )) )] diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index b16436a18f0..1d2d26b8f00 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -195,7 +195,15 @@ test(no_crate_inject, attr(deny(warnings))), test(attr(allow(dead_code, deprecated, unused_variables, unused_mut))) )] -#![cfg_attr(not(bootstrap), doc(cfg_hide(not(test), not(any(test, bootstrap)))))] +#![cfg_attr( + not(bootstrap), + doc(cfg_hide( + not(test), + not(any(test, bootstrap)), + no_global_oom_handling, + not(no_global_oom_handling) + )) +)] // Don't link to std. We are std. #![no_std] #![warn(deprecated_in_future)] |
