about summary refs log tree commit diff
path: root/library/std/src/lib.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-03-29 00:53:59 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-09-27 11:29:48 +0200
commit7c00bccd3b3eb6717e3c801123107962e671e48f (patch)
treed09538e680b53fb8ec9fc632916181b77be4dade /library/std/src/lib.rs
parent959b450747f81e720be3a829665dd30e553e7fd7 (diff)
downloadrust-7c00bccd3b3eb6717e3c801123107962e671e48f.tar.gz
rust-7c00bccd3b3eb6717e3c801123107962e671e48f.zip
Implement RFC 3631
Diffstat (limited to 'library/std/src/lib.rs')
-rw-r--r--library/std/src/lib.rs16
1 files changed, 15 insertions, 1 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs
index 233e41aa345..93c91b61525 100644
--- a/library/std/src/lib.rs
+++ b/library/std/src/lib.rs
@@ -235,7 +235,21 @@
     test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
 )]
 #![doc(rust_logo)]
-#![doc(cfg_hide(not(test), no_global_oom_handling, not(no_global_oom_handling)))]
+#![cfg_attr(
+    bootstrap,
+    doc(cfg_hide(
+        not(test),
+        no_global_oom_handling,
+        not(no_global_oom_handling)
+    ))
+)]
+#![cfg_attr(
+    not(bootstrap),
+    doc(auto_cfg(hide(
+        test,
+        no_global_oom_handling,
+    )))
+)]
 // Don't link to std. We are std.
 #![no_std]
 // Tell the compiler to link to either panic_abort or panic_unwind