Skip to content

Commit 43ed377

Browse files
add new section about CLI flags
1 parent c24a58c commit 43ed377

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,10 @@ chapter in the Unstable Book][unstable-include] and [its tracking issue][issue-i
196196

197197
[unstable-include]: ../unstable-book/language-features/external-doc.html
198198
[issue-include]: https://github.com/rust-lang/rust/issues/44732
199+
200+
## Unstable command-line arguments
201+
202+
These features are enabled by passing a command-line flag to Rustdoc, but the flags in question are
203+
themselves marked as unstable. To use any of these options, pass `-Z unstable-options` as well as
204+
the flag in question to Rustdoc on the command-line. To do this from Cargo, you can either use the
205+
`RUSTDOCFLAGS` environment variable or the `cargo rustdoc` command.

0 commit comments

Comments
 (0)