Skip to content

Commit 6c33c8d

Browse files
Rollup merge of rust-lang#90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
Create rustdoc_internals feature gate As suggested by ``@camelid`` [here](rust-lang#90398 (comment)), since `doc_keyword` and `doc_primitive` aren't meant to be stabilized, we could put them behind a same feature flag. This is pretty much what it would look like (needs to update the tests too). The tracking issue is rust-lang#90418. What do you think ``@rust-lang/rustdoc`` ?
2 parents 7a36fb2 + 33c17b5 commit 6c33c8d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

core/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@
166166
#![feature(derive_default_enum)]
167167
#![feature(doc_cfg)]
168168
#![feature(doc_notable_trait)]
169-
#![feature(doc_primitive)]
169+
#![cfg_attr(bootstrap, feature(doc_primitive))]
170+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
170171
#![feature(exhaustive_patterns)]
171172
#![feature(doc_cfg_hide)]
172173
#![feature(extern_types)]

std/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,11 @@
275275
#![feature(decl_macro)]
276276
#![feature(doc_cfg)]
277277
#![feature(doc_cfg_hide)]
278-
#![feature(doc_keyword)]
278+
#![cfg_attr(bootstrap, feature(doc_primitive))]
279+
#![cfg_attr(bootstrap, feature(doc_keyword))]
280+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
279281
#![feature(doc_masked)]
280282
#![feature(doc_notable_trait)]
281-
#![feature(doc_primitive)]
282283
#![feature(dropck_eyepatch)]
283284
#![feature(duration_checked_float)]
284285
#![feature(duration_constants)]

0 commit comments

Comments
 (0)