about summary refs log tree commit diff
path: root/src/doc/rustdoc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2021-10-30 17:44:50 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2021-11-24 21:57:18 +0100
commit1e6ced353215419f9e838bfbc3d61fe9eb0c004d (patch)
tree509862899a0cb744c1e846e3c59c58cea06bc737 /src/doc/rustdoc
parente8423e6c449ad3f4b0dab442175462004554e499 (diff)
downloadrust-1e6ced353215419f9e838bfbc3d61fe9eb0c004d.tar.gz
rust-1e6ced353215419f9e838bfbc3d61fe9eb0c004d.zip
Create rustdoc_internals feature gate
Diffstat (limited to 'src/doc/rustdoc')
-rw-r--r--src/doc/rustdoc/src/unstable-features.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/doc/rustdoc/src/unstable-features.md b/src/doc/rustdoc/src/unstable-features.md
index 16532215c6f..efb1b6e44ca 100644
--- a/src/doc/rustdoc/src/unstable-features.md
+++ b/src/doc/rustdoc/src/unstable-features.md
@@ -138,7 +138,8 @@ This is for Rust compiler internal use only.
 
 Since primitive types are defined in the compiler, there's no place to attach documentation
 attributes. The `#[doc(primitive)]` attribute is used by the standard library to provide a way
-to generate documentation for primitive types, and requires `#![feature(doc_primitive)]` to enable.
+to generate documentation for primitive types, and requires `#![feature(rustdoc_internals)]` to
+enable.
 
 ## Document keywords
 
@@ -149,7 +150,7 @@ Rust keywords are documented in the standard library (look for `match` for examp
 To do so, the `#[doc(keyword = "...")]` attribute is used. Example:
 
 ```rust
-#![feature(doc_keyword)]
+#![feature(rustdoc_internals)]
 
 /// Some documentation about the keyword.
 #[doc(keyword = "keyword")]