@@ -303,10 +303,11 @@ fn invoke_rustdoc(
303
303
. arg ( & out)
304
304
. arg ( & path)
305
305
. arg ( "--markdown-css" )
306
- . arg ( "../rust.css" ) ;
306
+ . arg ( "../rust.css" )
307
+ . arg ( "-Zunstable-options" ) ;
307
308
308
309
if !builder. config . docs_minification {
309
- cmd. arg ( "-Z" ) . arg ( "unstable-options" ) . arg ( "- -disable-minification") ;
310
+ cmd. arg ( "--disable-minification" ) ;
310
311
}
311
312
312
313
cmd. run ( builder) ;
@@ -376,8 +377,6 @@ impl Step for Standalone {
376
377
}
377
378
378
379
let mut cmd = builder. rustdoc_cmd ( compiler) ;
379
- // Needed for --index-page flag
380
- cmd. arg ( "-Z" ) . arg ( "unstable-options" ) ;
381
380
382
381
cmd. arg ( "--html-after-content" )
383
382
. arg ( & footer)
@@ -478,9 +477,6 @@ impl Step for Releases {
478
477
mem:: drop ( tmpfile) ;
479
478
let mut cmd = builder. rustdoc_cmd ( compiler) ;
480
479
481
- // Needed for --index-page flag
482
- cmd. arg ( "-Z" ) . arg ( "unstable-options" ) ;
483
-
484
480
cmd. arg ( "--html-after-content" )
485
481
. arg ( & footer)
486
482
. arg ( "--html-before-content" )
@@ -715,8 +711,6 @@ fn doc_std(
715
711
. arg ( "--target-dir" )
716
712
. arg ( & * target_dir. to_string_lossy ( ) )
717
713
. arg ( "-Zskip-rustdoc-fingerprint" )
718
- . rustdocflag ( "-Z" )
719
- . rustdocflag ( "unstable-options" )
720
714
. rustdocflag ( "--resource-suffix" )
721
715
. rustdocflag ( & builder. version ) ;
722
716
for arg in extra_args {
@@ -822,15 +816,13 @@ impl Step for Rustc {
822
816
// Since we always pass --document-private-items, there's no need to warn about linking to private items.
823
817
cargo. rustdocflag ( "-Arustdoc::private-intra-doc-links" ) ;
824
818
cargo. rustdocflag ( "--enable-index-page" ) ;
825
- cargo. rustdocflag ( "-Zunstable-options" ) ;
826
819
cargo. rustdocflag ( "-Znormalize-docs" ) ;
827
820
cargo. rustdocflag ( "--show-type-layout" ) ;
828
821
// FIXME: `--generate-link-to-definition` tries to resolve cfged out code
829
822
// see https://github.com/rust-lang/rust/pull/122066#issuecomment-1983049222
830
823
// cargo.rustdocflag("--generate-link-to-definition");
831
824
832
825
compile:: rustc_cargo ( builder, & mut cargo, target, & compiler) ;
833
- cargo. arg ( "-Zunstable-options" ) ;
834
826
cargo. arg ( "-Zskip-rustdoc-fingerprint" ) ;
835
827
836
828
// Only include compiler crates, no dependencies of those, such as `libc`.
@@ -986,7 +978,6 @@ macro_rules! tool_doc {
986
978
cargo. rustdocflag( "-Arustdoc::private-intra-doc-links" ) ;
987
979
cargo. rustdocflag( "--enable-index-page" ) ;
988
980
cargo. rustdocflag( "--show-type-layout" ) ;
989
- cargo. rustdocflag( "-Zunstable-options" ) ;
990
981
// FIXME: `--generate-link-to-definition` tries to resolve cfged out code
991
982
// see https://github.com/rust-lang/rust/pull/122066#issuecomment-1983049222
992
983
// cargo.rustdocflag("--generate-link-to-definition");
0 commit comments