Add an index page for nightly rustc docs.

This commit is contained in:
Eric Huss 2020-04-29 08:16:39 -07:00
parent 825cf51ad7
commit d6336dfe01

View File

@ -478,7 +478,11 @@ impl Step for Rustc {
// Build cargo command.
let mut cargo = builder.cargo(compiler, Mode::Rustc, target, "doc");
cargo.env("RUSTDOCFLAGS", "--document-private-items");
cargo.env(
"RUSTDOCFLAGS",
"--document-private-items \
--enable-index-page -Zunstable-options",
);
compile::rustc_cargo(builder, &mut cargo, target);
// Only include compiler crates, no dependencies of those, such as `libc`.