This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments