summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-11-24 22:56:37 +0100
committerGitHub <noreply@github.com>2021-11-24 22:56:37 +0100
commita6a1d7ca2936ddb33dbaad69ae3a8a47b9208498 (patch)
tree5000d2963032cedb54c906861356172898efe916 /library/std/src
parentcbe563a4d575f888d3889a6d8f103ce1ebbe9ad3 (diff)
parent9447d1f903742619b49f8ff5959b7553730c876a (diff)
downloadrust-a6a1d7ca2936ddb33dbaad69ae3a8a47b9208498.tar.gz
rust-a6a1d7ca2936ddb33dbaad69ae3a8a47b9208498.zip
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
Create rustdoc_internals feature gate

As suggested by ``@camelid`` [here](https://github.com/rust-lang/rust/pull/90398#issuecomment-955093851), 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 https://github.com/rust-lang/rust/issues/90418.

What do you think ``@rust-lang/rustdoc`` ?
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs
index afd8d8edaa1..504c3b7e9f9 100644
--- a/library/std/src/lib.rs
+++ b/library/std/src/lib.rs
@@ -275,10 +275,11 @@
 #![feature(decl_macro)]
 #![feature(doc_cfg)]
 #![feature(doc_cfg_hide)]
-#![feature(doc_keyword)]
+#![cfg_attr(bootstrap, feature(doc_primitive))]
+#![cfg_attr(bootstrap, feature(doc_keyword))]
+#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
 #![feature(doc_masked)]
 #![feature(doc_notable_trait)]
-#![feature(doc_primitive)]
 #![feature(dropck_eyepatch)]
 #![feature(duration_checked_float)]
 #![feature(duration_constants)]