Skip to content

Commit d2dae03

Browse files
Remove doc_cfg_hide feature
1 parent 209ee80 commit d2dae03

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

compiler/rustc_feature/src/unstable.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,6 @@ declare_features! (
473473
(unstable, doc_auto_cfg, "1.58.0", Some(43781)),
474474
/// Allows `#[doc(cfg(...))]`.
475475
(unstable, doc_cfg, "1.21.0", Some(43781)),
476-
/// Allows `#[doc(cfg_hide(...))]`.
477-
(unstable, doc_cfg_hide, "1.57.0", Some(43781)),
478476
/// Allows `#[doc(masked)]`.
479477
(unstable, doc_masked, "1.21.0", Some(44027)),
480478
/// Allows `dyn* Trait` objects.

compiler/rustc_span/src/symbol.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,6 @@ symbols! {
841841
doc_alias,
842842
doc_auto_cfg,
843843
doc_cfg,
844-
doc_cfg_hide,
845844
doc_keyword,
846845
doc_masked,
847846
doc_notable_trait,

library/alloc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
//
205205
// Rustdoc features:
206206
#![feature(doc_cfg)]
207-
#![feature(doc_cfg_hide)]
207+
#![cfg_attr(bootstrap, feature(doc_cfg_hide))]
208208
// Technically, this is a bug in rustdoc: rustdoc sees the documentation on `#[lang = slice_alloc]`
209209
// blocks is for `&[T]`, which also has documentation using this feature in `core`, and gets mad
210210
// that the feature-gate isn't enabled. Ideally, it wouldn't check for the feature gate for docs

library/core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
//
160160
// Language features:
161161
// tidy-alphabetical-start
162+
#![cfg_attr(bootstrap, feature(doc_cfg_hide))]
162163
#![feature(abi_unadjusted)]
163164
#![feature(adt_const_params)]
164165
#![feature(allow_internal_unsafe)]
@@ -173,7 +174,6 @@
173174
#![feature(decl_macro)]
174175
#![feature(deprecated_suggestion)]
175176
#![feature(doc_cfg)]
176-
#![feature(doc_cfg_hide)]
177177
#![feature(doc_notable_trait)]
178178
#![feature(extern_types)]
179179
#![feature(f128)]

library/std/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@
279279
// tidy-alphabetical-start
280280

281281
// stabilization was reverted after it hit beta
282+
#![cfg_attr(bootstrap, feature(doc_cfg_hide))]
283+
#![cfg_attr(not(bootstrap), feature(autodiff))]
282284
#![feature(alloc_error_handler)]
283285
#![feature(allocator_internals)]
284286
#![feature(allow_internal_unsafe)]
@@ -294,7 +296,6 @@
294296
#![feature(decl_macro)]
295297
#![feature(deprecated_suggestion)]
296298
#![feature(doc_cfg)]
297-
#![feature(doc_cfg_hide)]
298299
#![feature(doc_masked)]
299300
#![feature(doc_notable_trait)]
300301
#![feature(dropck_eyepatch)]

0 commit comments

Comments
 (0)