about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-04-01 17:24:28 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-09-27 11:29:48 +0200
commit63aefe0737d0df886955f5a3aa68db865cd97f1b (patch)
tree3e3d93701bbc219210abc3c848d6fa883e287e43 /library
parent2d82c99f1e4a4e50b47f75d767b0d1d957357c1a (diff)
downloadrust-63aefe0737d0df886955f5a3aa68db865cd97f1b.tar.gz
rust-63aefe0737d0df886955f5a3aa68db865cd97f1b.zip
Strenghten checks for `doc(auto_cfg(show/hide))` attributes
Diffstat (limited to 'library')
-rw-r--r--library/alloc/src/lib.rs1
-rw-r--r--library/std/src/lib.rs8
2 files changed, 1 insertions, 8 deletions
diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs
index 243fdc2e843..dc5d243e882 100644
--- a/library/alloc/src/lib.rs
+++ b/library/alloc/src/lib.rs
@@ -78,7 +78,6 @@
 #![cfg_attr(
     not(bootstrap),
     doc(auto_cfg(hide(
-        test,
         no_global_oom_handling,
         no_rc,
         no_sync,
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs
index 93c91b61525..ecd354f599e 100644
--- a/library/std/src/lib.rs
+++ b/library/std/src/lib.rs
@@ -243,13 +243,7 @@
         not(no_global_oom_handling)
     ))
 )]
-#![cfg_attr(
-    not(bootstrap),
-    doc(auto_cfg(hide(
-        test,
-        no_global_oom_handling,
-    )))
-)]
+#![cfg_attr(not(bootstrap), doc(auto_cfg(hide(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