Skip to content

Commit da5d03d

Browse files
aleksatorGuillaumeGomez
authored andcommitted
Add missing -Z unstable-options flag
1 parent c57de34 commit da5d03d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/bootstrap/doc.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ impl Step for Standalone {
313313
}
314314

315315
let mut cmd = builder.rustdoc_cmd(compiler);
316+
// Needed for --index-page flag
317+
cmd.arg("-Z").arg("unstable-options");
318+
316319
cmd.arg("--html-after-content")
317320
.arg(&footer)
318321
.arg("--html-before-content")
@@ -395,7 +398,7 @@ impl Step for Std {
395398

396399
// Keep a whitelist so we do not build internal stdlib crates, these will be
397400
// build by the rustc step later if enabled.
398-
cargo.arg("-Z").arg("unstable-options").arg("-p").arg(package);
401+
cargo.arg("-p").arg(package);
399402
// Create all crate output directories first to make sure rustdoc uses
400403
// relative links.
401404
// FIXME: Cargo should probably do this itself.
@@ -406,6 +409,8 @@ impl Step for Std {
406409
.arg("rust.css")
407410
.arg("--markdown-no-toc")
408411
.arg("--generate-redirect-pages")
412+
.arg("-Z")
413+
.arg("unstable-options")
409414
.arg("--resource-suffix")
410415
.arg(crate::channel::CFG_RELEASE_NUM)
411416
.arg("--index-page")

0 commit comments

Comments
 (0)