]> git.lizzy.rs Git - rust.git/commitdiff
talk about force-unstable-if-unmarked
authorQuietMisdreavus <grey@quietmisdreavus.net>
Tue, 20 Mar 2018 16:23:48 +0000 (11:23 -0500)
committerQuietMisdreavus <grey@quietmisdreavus.net>
Tue, 20 Mar 2018 16:23:48 +0000 (11:23 -0500)
src/doc/rustdoc/src/unstable-features.md

index 6a786c1985142798bac8cb5d1e79bfc8339247e6..ac69cc1007d80d8994009f39a5af899df0043542 100644 (file)
@@ -345,3 +345,16 @@ bug][issue-display-warnings], this flag doesn't 100% work as intended. See the l
 details.
 
 [issue-display-warnings]: https://github.com/rust-lang/rust/issues/41574
+
+### `-Z force-unstable-if-unmarked`
+
+Using this flag looks like this:
+
+```bash
+$ rustdoc src/lib.rs -Z force-unstable-if-unmarked
+```
+
+This is an internal flag intended for the standard library and compiler that applies an
+`#[unstable]` attribute to any dependent crate that doesn't have another stability attribute. This
+allows `rustdoc` to be able to generate documentation for the compiler crates and the standard
+library, as an equivalent command-line argument is provided to `rustc` when building those crates.