Skip to content

Commit c907762

Browse files
Remove doc_cfg_hide feature
1 parent d794136 commit c907762

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
@@ -477,8 +477,6 @@ declare_features! (
477477
(unstable, doc_auto_cfg, "1.58.0", Some(43781)),
478478
/// Allows `#[doc(cfg(...))]`.
479479
(unstable, doc_cfg, "1.21.0", Some(43781)),
480-
/// Allows `#[doc(cfg_hide(...))]`.
481-
(unstable, doc_cfg_hide, "1.57.0", Some(43781)),
482480
/// Allows `#[doc(masked)]`.
483481
(unstable, doc_masked, "1.21.0", Some(44027)),
484482
/// Allows `dyn* Trait` objects.

compiler/rustc_span/src/symbol.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,6 @@ symbols! {
860860
doc_alias,
861861
doc_auto_cfg,
862862
doc_cfg,
863-
doc_cfg_hide,
864863
doc_keyword,
865864
doc_masked,
866865
doc_notable_trait,

library/alloc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
//
204204
// Rustdoc features:
205205
#![feature(doc_cfg)]
206-
#![feature(doc_cfg_hide)]
206+
#![cfg_attr(bootstrap, feature(doc_cfg_hide))]
207207
// Technically, this is a bug in rustdoc: rustdoc sees the documentation on `#[lang = slice_alloc]`
208208
// blocks is for `&[T]`, which also has documentation using this feature in `core`, and gets mad
209209
// 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
@@ -160,6 +160,7 @@
160160
//
161161
// Language features:
162162
// tidy-alphabetical-start
163+
#![cfg_attr(bootstrap, feature(doc_cfg_hide))]
163164
#![feature(abi_unadjusted)]
164165
#![feature(adt_const_params)]
165166
#![feature(allow_internal_unsafe)]
@@ -174,7 +175,6 @@
174175
#![feature(decl_macro)]
175176
#![feature(deprecated_suggestion)]
176177
#![feature(doc_cfg)]
177-
#![feature(doc_cfg_hide)]
178178
#![feature(doc_notable_trait)]
179179
#![feature(extern_types)]
180180
#![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)