Skip to content

Commit a6098bb

Browse files
Strenghten checks for doc(auto_cfg(show/hide)) attributes
1 parent b7f1d85 commit a6098bb

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

alloc/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
#![cfg_attr(
7979
not(bootstrap),
8080
doc(auto_cfg(hide(
81-
test,
8281
no_global_oom_handling,
8382
no_rc,
8483
no_sync,

std/src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,7 @@
243243
not(no_global_oom_handling)
244244
))
245245
)]
246-
#![cfg_attr(
247-
not(bootstrap),
248-
doc(auto_cfg(hide(
249-
test,
250-
no_global_oom_handling,
251-
)))
252-
)]
246+
#![cfg_attr(not(bootstrap), doc(auto_cfg(hide(no_global_oom_handling))))]
253247
// Don't link to std. We are std.
254248
#![no_std]
255249
// Tell the compiler to link to either panic_abort or panic_unwind

0 commit comments

Comments
 (0)