Skip to content

Commit 33c17b5

Browse files
Create rustdoc_internals feature gate
1 parent 6d17e9b commit 33c17b5

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
@@ -165,7 +165,8 @@
165165
#![feature(decl_macro)]
166166
#![feature(doc_cfg)]
167167
#![feature(doc_notable_trait)]
168-
#![feature(doc_primitive)]
168+
#![cfg_attr(bootstrap, feature(doc_primitive))]
169+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
169170
#![feature(exhaustive_patterns)]
170171
#![feature(doc_cfg_hide)]
171172
#![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)