Rollup merge of #83885 - jyn514:private-links, r=Mark-Simulacrum
Document compiler/ with -Aprivate-intra-doc-links Since compiler/ always passes --document-private-items, it's ok to link to items that are private.
This commit is contained in:
commit
d8c04b13a2
2 changed files with 2 additions and 9 deletions
|
|
@ -549,6 +549,8 @@ impl Step for Rustc {
|
|||
// Build cargo command.
|
||||
let mut cargo = builder.cargo(compiler, Mode::Rustc, SourceType::InTree, target, "doc");
|
||||
cargo.rustdocflag("--document-private-items");
|
||||
// Since we always pass --document-private-items, there's no need to warn about linking to private items.
|
||||
cargo.rustdocflag("-Arustdoc::private-intra-doc-links");
|
||||
cargo.rustdocflag("--enable-index-page");
|
||||
cargo.rustdocflag("-Zunstable-options");
|
||||
cargo.rustdocflag("-Znormalize-docs");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue