@@ -690,17 +690,10 @@ impl Step for Rustc {
690690 builder. ensure ( compile:: Rustc { compiler, target } ) ;
691691 let out_dir = build. stage_out ( compiler, Mode :: Librustc )
692692 . join ( target) . join ( "doc" ) ;
693-
694- // See docs in std above for why we symlink
695- //
696- // This step must happen after other documentation steps. This
697- // invariant ensures that compiler documentation is not included
698- // in the standard documentation tarballs but that all the
699- // documentation from the standard documentation tarballs is included
700- // in the compiler documentation tarball.
701- let my_out = build. crate_doc_out ( target) ;
702- build. clear_if_dirty ( & my_out, & rustdoc) ;
703- t ! ( symlink_dir_force( & my_out, & out_dir) ) ;
693+ // We do not symlink to the same shared folder that already contains std library
694+ // documentation from previous steps as we do not want to include that.
695+ build. clear_if_dirty ( & out, & rustdoc) ;
696+ t ! ( symlink_dir_force( & out, & out_dir) ) ;
704697
705698 let mut cargo = builder. cargo ( compiler, Mode :: Librustc , target, "doc" ) ;
706699 compile:: rustc_cargo ( build, & mut cargo) ;
@@ -720,7 +713,6 @@ impl Step for Rustc {
720713 }
721714
722715 build. run ( & mut cargo) ;
723- cp_r ( & my_out, & out) ;
724716 }
725717}
726718
0 commit comments