Skip to content

Commit f95a946

Browse files
Remove doc_cfg_hide feature
1 parent a6098bb commit f95a946

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

alloc/src/lib.rs

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

core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@
161161
//
162162
// Language features:
163163
// tidy-alphabetical-start
164+
#![cfg_attr(bootstrap, feature(doc_cfg_hide))]
164165
#![feature(abi_unadjusted)]
165166
#![feature(adt_const_params)]
166167
#![feature(allow_internal_unsafe)]
@@ -176,7 +177,6 @@
176177
#![feature(deprecated_suggestion)]
177178
#![feature(derive_const)]
178179
#![feature(doc_cfg)]
179-
#![feature(doc_cfg_hide)]
180180
#![feature(doc_notable_trait)]
181181
#![feature(extern_types)]
182182
#![feature(f16)]

std/src/lib.rs

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

280280
// stabilization was reverted after it hit beta
281+
#![cfg_attr(bootstrap, feature(doc_cfg_hide))]
282+
#![cfg_attr(not(bootstrap), feature(autodiff))]
281283
#![feature(alloc_error_handler)]
282284
#![feature(allocator_internals)]
283285
#![feature(allow_internal_unsafe)]
@@ -293,7 +295,6 @@
293295
#![feature(decl_macro)]
294296
#![feature(deprecated_suggestion)]
295297
#![feature(doc_cfg)]
296-
#![feature(doc_cfg_hide)]
297298
#![feature(doc_masked)]
298299
#![feature(doc_notable_trait)]
299300
#![feature(dropck_eyepatch)]

0 commit comments

Comments
 (0)