Skip to content

Commit 3286436

Browse files
authored
Rollup merge of #71678 - ehuss:rustc-doc-index, r=Mark-Simulacrum
Add an index page for nightly rustc docs. This adds an `index.html` page at the root of the nightly-rustc docs so that the URL https://doc.rust-lang.org/nightly/nightly-rustc/ should have a landing page that lists all the crates.
2 parents 75561a5 + d6336df commit 3286436

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bootstrap/doc.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,11 @@ impl Step for Rustc {
478478

479479
// Build cargo command.
480480
let mut cargo = builder.cargo(compiler, Mode::Rustc, target, "doc");
481-
cargo.env("RUSTDOCFLAGS", "--document-private-items");
481+
cargo.env(
482+
"RUSTDOCFLAGS",
483+
"--document-private-items \
484+
--enable-index-page -Zunstable-options",
485+
);
482486
compile::rustc_cargo(builder, &mut cargo, target);
483487

484488
// Only include compiler crates, no dependencies of those, such as `libc`.

0 commit comments

Comments
 (0)