diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-10-30 17:44:50 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-11-24 21:57:18 +0100 |
| commit | 1e6ced353215419f9e838bfbc3d61fe9eb0c004d (patch) | |
| tree | 509862899a0cb744c1e846e3c59c58cea06bc737 /src/doc/rustdoc | |
| parent | e8423e6c449ad3f4b0dab442175462004554e499 (diff) | |
| download | rust-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.md | 5 |
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")] |
