]> git.lizzy.rs Git - rust.git/commitdiff
Add an index page for nightly rustc docs.
authorEric Huss <eric@huss.org>
Wed, 29 Apr 2020 15:16:39 +0000 (08:16 -0700)
committerEric Huss <eric@huss.org>
Wed, 29 Apr 2020 15:16:39 +0000 (08:16 -0700)
src/bootstrap/doc.rs

index fc217a707db9434b7f14457849c91944c45c01f1..7eab92ddc92a95a9ba7b6bc639832633b82f26ee 100644 (file)
@@ -478,7 +478,11 @@ fn run(self, builder: &Builder<'_>) {
 
         // 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`.