about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-04-06 06:24:17 +0900
committerGitHub <noreply@github.com>2021-04-06 06:24:17 +0900
commitd8c04b13a2a6eaba375bb79c1bda7ec78f820e7e (patch)
tree4ae1e5837c00634449b6529cdf352d627fb9a902 /src/bootstrap
parentfb6eb4ad93afdfb7a2ccef2728fe252109331448 (diff)
parent0a351abf83f1d146e2d259d404fb16a158721391 (diff)
downloadrust-d8c04b13a2a6eaba375bb79c1bda7ec78f820e7e.tar.gz
rust-d8c04b13a2a6eaba375bb79c1bda7ec78f820e7e.zip
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.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/doc.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs
index fc79fc10fb4..f499f1a684d 100644
--- a/src/bootstrap/doc.rs
+++ b/src/bootstrap/doc.rs
@@ -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");