@@ -303,10 +303,11 @@ fn invoke_rustdoc(
303303 . arg ( & out)
304304 . arg ( & path)
305305 . arg ( "--markdown-css" )
306- . arg ( "../rust.css" ) ;
306+ . arg ( "../rust.css" )
307+ . arg ( "-Zunstable-options" ) ;
307308
308309 if !builder. config . docs_minification {
309- cmd. arg ( "-Z" ) . arg ( "unstable-options" ) . arg ( "- -disable-minification") ;
310+ cmd. arg ( "--disable-minification" ) ;
310311 }
311312
312313 cmd. run ( builder) ;
@@ -376,8 +377,6 @@ impl Step for Standalone {
376377 }
377378
378379 let mut cmd = builder. rustdoc_cmd ( compiler) ;
379- // Needed for --index-page flag
380- cmd. arg ( "-Z" ) . arg ( "unstable-options" ) ;
381380
382381 cmd. arg ( "--html-after-content" )
383382 . arg ( & footer)
@@ -478,9 +477,6 @@ impl Step for Releases {
478477 mem:: drop ( tmpfile) ;
479478 let mut cmd = builder. rustdoc_cmd ( compiler) ;
480479
481- // Needed for --index-page flag
482- cmd. arg ( "-Z" ) . arg ( "unstable-options" ) ;
483-
484480 cmd. arg ( "--html-after-content" )
485481 . arg ( & footer)
486482 . arg ( "--html-before-content" )
@@ -715,8 +711,6 @@ fn doc_std(
715711 . arg ( "--target-dir" )
716712 . arg ( & * target_dir. to_string_lossy ( ) )
717713 . arg ( "-Zskip-rustdoc-fingerprint" )
718- . rustdocflag ( "-Z" )
719- . rustdocflag ( "unstable-options" )
720714 . rustdocflag ( "--resource-suffix" )
721715 . rustdocflag ( & builder. version ) ;
722716 for arg in extra_args {
@@ -822,15 +816,13 @@ impl Step for Rustc {
822816 // Since we always pass --document-private-items, there's no need to warn about linking to private items.
823817 cargo. rustdocflag ( "-Arustdoc::private-intra-doc-links" ) ;
824818 cargo. rustdocflag ( "--enable-index-page" ) ;
825- cargo. rustdocflag ( "-Zunstable-options" ) ;
826819 cargo. rustdocflag ( "-Znormalize-docs" ) ;
827820 cargo. rustdocflag ( "--show-type-layout" ) ;
828821 // FIXME: `--generate-link-to-definition` tries to resolve cfged out code
829822 // see https://github.com/rust-lang/rust/pull/122066#issuecomment-1983049222
830823 // cargo.rustdocflag("--generate-link-to-definition");
831824
832825 compile:: rustc_cargo ( builder, & mut cargo, target, & compiler) ;
833- cargo. arg ( "-Zunstable-options" ) ;
834826 cargo. arg ( "-Zskip-rustdoc-fingerprint" ) ;
835827
836828 // Only include compiler crates, no dependencies of those, such as `libc`.
@@ -986,7 +978,6 @@ macro_rules! tool_doc {
986978 cargo. rustdocflag( "-Arustdoc::private-intra-doc-links" ) ;
987979 cargo. rustdocflag( "--enable-index-page" ) ;
988980 cargo. rustdocflag( "--show-type-layout" ) ;
989- cargo. rustdocflag( "-Zunstable-options" ) ;
990981 // FIXME: `--generate-link-to-definition` tries to resolve cfged out code
991982 // see https://github.com/rust-lang/rust/pull/122066#issuecomment-1983049222
992983 // cargo.rustdocflag("--generate-link-to-definition");
0 commit comments