diff options
| author | Alex Tokarev <aleksator@gmail.com> | 2020-03-21 01:08:31 +0300 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-03-21 19:19:54 +0100 |
| commit | da5d03d09e048771aeec42944bfbef19f96a34cd (patch) | |
| tree | e12c1147763ab97905d98a107f777c0dbe69db17 /src/bootstrap | |
| parent | c57de34e8feca218c0c696b621de87c078a2a0e0 (diff) | |
| download | rust-da5d03d09e048771aeec42944bfbef19f96a34cd.tar.gz rust-da5d03d09e048771aeec42944bfbef19f96a34cd.zip | |
Add missing -Z unstable-options flag
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/doc.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index b0d9a5b9464..04da3cc1015 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -313,6 +313,9 @@ impl Step for Standalone { } let mut cmd = builder.rustdoc_cmd(compiler); + // Needed for --index-page flag + cmd.arg("-Z").arg("unstable-options"); + cmd.arg("--html-after-content") .arg(&footer) .arg("--html-before-content") @@ -395,7 +398,7 @@ impl Step for Std { // Keep a whitelist so we do not build internal stdlib crates, these will be // build by the rustc step later if enabled. - cargo.arg("-Z").arg("unstable-options").arg("-p").arg(package); + cargo.arg("-p").arg(package); // Create all crate output directories first to make sure rustdoc uses // relative links. // FIXME: Cargo should probably do this itself. @@ -406,6 +409,8 @@ impl Step for Std { .arg("rust.css") .arg("--markdown-no-toc") .arg("--generate-redirect-pages") + .arg("-Z") + .arg("unstable-options") .arg("--resource-suffix") .arg(crate::channel::CFG_RELEASE_NUM) .arg("--index-page") |
