Skip to content

Commit c019c81

Browse files
Remove doc_cfg_hide feature
1 parent 0f96e9e commit c019c81

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-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
@@ -206,7 +206,7 @@
206206
//
207207
// Rustdoc features:
208208
#![feature(doc_cfg)]
209-
#![feature(doc_cfg_hide)]
209+
#![cfg_attr(bootstrap, feature(doc_cfg_hide))]
210210
// Technically, this is a bug in rustdoc: rustdoc sees the documentation on `#[lang = slice_alloc]`
211211
// blocks is for `&[T]`, which also has documentation using this feature in `core`, and gets mad
212212
// 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@
280280
// tidy-alphabetical-start
281281

282282
// stabilization was reverted after it hit beta
283+
#![cfg_attr(bootstrap, feature(doc_cfg_hide))]
283284
#![cfg_attr(not(bootstrap), feature(autodiff))]
284285
#![feature(alloc_error_handler)]
285286
#![feature(allocator_internals)]
@@ -295,7 +296,6 @@
295296
#![feature(decl_macro)]
296297
#![feature(deprecated_suggestion)]
297298
#![feature(doc_cfg)]
298-
#![feature(doc_cfg_hide)]
299299
#![feature(doc_masked)]
300300
#![feature(doc_notable_trait)]
301301
#![feature(dropck_eyepatch)]

0 commit comments

Comments
 (0)