Skip to content

Commit b996f9d

Browse files
review comments
1 parent 83e9f39 commit b996f9d

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src/doc/rustdoc/src/unstable-features.md

+13-11
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern { fn some_func<T>(x: T); }
3333

3434
This is used by the error index to ensure that the samples that correspond to a given error number
3535
properly emit that error code. However, these error codes aren't guaranteed to be the only thing
36-
that a piece of code emits from version to version, so this in unlikely to be stabilized in the
36+
that a piece of code emits from version to version, so this is unlikely to be stabilized in the
3737
future.
3838

3939
Attempting to use these error numbers on stable will result in the code sample being interpreted as
@@ -134,9 +134,9 @@ pub struct UnixToken;
134134
In this sample, the tokens will only appear on their respective platforms, but they will both appear
135135
in documentation.
136136

137-
`#[doc(cfg(...))]` was introduced to be used by the standard library and is currently controlled by
138-
a feature gate. For more information, see [its chapter in the Unstable Book][unstable-doc-cfg] and
139-
[its tracking issue][issue-doc-cfg].
137+
`#[doc(cfg(...))]` was introduced to be used by the standard library and currently requires the
138+
`#![feature(doc_cfg)]` feature gate. For more information, see [its chapter in the Unstable
139+
Book][unstable-doc-cfg] and [its tracking issue][issue-doc-cfg].
140140

141141
[unstable-doc-cfg]: ../unstable-book/language-features/doc-cfg.html
142142
[issue-doc-cfg]: https://github.com/rust-lang/rust/issues/43781
@@ -155,8 +155,9 @@ In the standard library, the traits that qualify for inclusion are `Iterator`, `
155155
special marker attribute on them: `#[doc(spotlight)]`. This means that you could apply this
156156
attribute to your own trait to include it in the "Important Traits" dialog in documentation.
157157

158-
The `#[doc(spotlight)]` attribute is controlled by a feature gate. For more information, see [its
159-
chapter in the Unstable Book][unstable-spotlight] and [its tracking issue][issue-spotlight].
158+
The `#[doc(spotlight)]` attribute currently requires the `#![feature(doc_spotlight)]` feature gate.
159+
For more information, see [its chapter in the Unstable Book][unstable-spotlight] and [its tracking
160+
issue][issue-spotlight].
160161

161162
[unstable-spotlight]: ../unstable-book/language-features/doc-spotlight.html
162163
[issue-spotlight]: https://github.com/rust-lang/rust/issues/45040
@@ -174,9 +175,9 @@ To prevent internal types from being included in documentation, the standard lib
174175
attribute to their `extern crate` declarations: `#[doc(masked)]`. This causes Rustdoc to "mask out"
175176
types from these crates when building lists of trait implementations.
176177

177-
The `#[doc(masked)]` attribute is intended to be used internally, and is controlled by a feature
178-
gate. For more information, see [its chapter in the Unstable Book][unstable-masked] and [its
179-
tracking issue][issue-masked].
178+
The `#[doc(masked)]` attribute is intended to be used internally, and requires the
179+
`#![feature(doc_masked)]` feature gate. For more information, see [its chapter in the Unstable
180+
Book][unstable-masked] and [its tracking issue][issue-masked].
180181

181182
[unstable-masked]: ../unstable-book/language-features/doc-masked.html
182183
[issue-masked]: https://github.com/rust-lang/rust/issues/44027
@@ -191,8 +192,9 @@ as if it were written inline.
191192

192193
[RFC 1990]: https://github.com/rust-lang/rfcs/pull/1990
193194

194-
`#[doc(include = "...")]` is currently controlled by a feature gate. For more information, see [its
195-
chapter in the Unstable Book][unstable-include] and [its tracking issue][issue-include].
195+
`#[doc(include = "...")]` currently requires the `#![feature(external_doc)]` feature gate. For more
196+
information, see [its chapter in the Unstable Book][unstable-include] and [its tracking
197+
issue][issue-include].
196198

197199
[unstable-include]: ../unstable-book/language-features/external-doc.html
198200
[issue-include]: https://github.com/rust-lang/rust/issues/44732

0 commit comments

Comments
 (0)