Skip to content

Commit 83e9f39

Browse files
talk about force-unstable-if-unmarked
1 parent 5e93394 commit 83e9f39

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,3 +345,16 @@ bug][issue-display-warnings], this flag doesn't 100% work as intended. See the l
345345
details.
346346

347347
[issue-display-warnings]: https://github.com/rust-lang/rust/issues/41574
348+
349+
### `-Z force-unstable-if-unmarked`
350+
351+
Using this flag looks like this:
352+
353+
```bash
354+
$ rustdoc src/lib.rs -Z force-unstable-if-unmarked
355+
```
356+
357+
This is an internal flag intended for the standard library and compiler that applies an
358+
`#[unstable]` attribute to any dependent crate that doesn't have another stability attribute. This
359+
allows `rustdoc` to be able to generate documentation for the compiler crates and the standard
360+
library, as an equivalent command-line argument is provided to `rustc` when building those crates.

0 commit comments

Comments
 (0)