File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -732,11 +732,14 @@ impl<'a> Builder<'a> {
732
732
. env ( "CFG_RELEASE_CHANNEL" , & self . config . channel )
733
733
. env ( "RUSTDOC_REAL" , self . rustdoc ( compiler) )
734
734
. env ( "RUSTC_BOOTSTRAP" , "1" )
735
- . arg ( "-Znormalize_docs" )
736
735
. arg ( "-Winvalid_codeblock_attributes" ) ;
737
736
if self . config . deny_warnings {
738
737
cmd. arg ( "-Dwarnings" ) ;
739
738
}
739
+ // cfg(not(bootstrap)), can be removed on the next beta bump
740
+ if compiler. stage != 0 {
741
+ cmd. arg ( "-Znormalize-docs" ) ;
742
+ }
740
743
741
744
// Remove make-related flags that can cause jobserver problems.
742
745
cmd. env_remove ( "MAKEFLAGS" ) ;
Original file line number Diff line number Diff line change @@ -527,7 +527,10 @@ impl Step for Rustc {
527
527
cargo. rustdocflag ( "--document-private-items" ) ;
528
528
cargo. rustdocflag ( "--enable-index-page" ) ;
529
529
cargo. rustdocflag ( "-Zunstable-options" ) ;
530
- cargo. rustdocflag ( "-Znormalize-docs" ) ;
530
+ // cfg(not(bootstrap)), can be removed on the next beta bump
531
+ if stage != 0 {
532
+ cargo. rustdocflag ( "-Znormalize-docs" ) ;
533
+ }
531
534
compile:: rustc_cargo ( builder, & mut cargo, target) ;
532
535
533
536
// Only include compiler crates, no dependencies of those, such as `libc`.
You can’t perform that action at this time.
0 commit comments