@@ -455,7 +455,6 @@ impl Step for Std {
455455 let out = builder. doc_out ( target) ;
456456 t ! ( fs:: create_dir_all( & out) ) ;
457457 let compiler = builder. compiler ( stage, builder. config . build ) ;
458- let rustdoc = builder. rustdoc ( compiler. host ) ;
459458 let compiler = if builder. force_use_stage1 ( compiler, target) {
460459 builder. compiler ( 1 , compiler. host )
461460 } else {
@@ -480,7 +479,6 @@ impl Step for Std {
480479 // This way rustdoc generates output directly into the output, and rustdoc
481480 // will also directly handle merging.
482481 let my_out = builder. crate_doc_out ( target) ;
483- builder. clear_if_dirty ( & my_out, & rustdoc) ;
484482 t ! ( symlink_dir_force( & builder. config, & my_out, & out_dir) ) ;
485483
486484 let mut cargo = builder. cargo ( compiler, Mode :: Std , target, "doc" ) ;
@@ -535,7 +533,6 @@ impl Step for Test {
535533 let out = builder. doc_out ( target) ;
536534 t ! ( fs:: create_dir_all( & out) ) ;
537535 let compiler = builder. compiler ( stage, builder. config . build ) ;
538- let rustdoc = builder. rustdoc ( compiler. host ) ;
539536 let compiler = if builder. force_use_stage1 ( compiler, target) {
540537 builder. compiler ( 1 , compiler. host )
541538 } else {
@@ -551,7 +548,6 @@ impl Step for Test {
551548
552549 // See docs in std above for why we symlink
553550 let my_out = builder. crate_doc_out ( target) ;
554- builder. clear_if_dirty ( & my_out, & rustdoc) ;
555551 t ! ( symlink_dir_force( & builder. config, & my_out, & out_dir) ) ;
556552
557553 let mut cargo = builder. cargo ( compiler, Mode :: Test , target, "doc" ) ;
@@ -603,7 +599,6 @@ impl Step for WhitelistedRustc {
603599 let out = builder. doc_out ( target) ;
604600 t ! ( fs:: create_dir_all( & out) ) ;
605601 let compiler = builder. compiler ( stage, builder. config . build ) ;
606- let rustdoc = builder. rustdoc ( compiler. host ) ;
607602 let compiler = if builder. force_use_stage1 ( compiler, target) {
608603 builder. compiler ( 1 , compiler. host )
609604 } else {
@@ -619,7 +614,6 @@ impl Step for WhitelistedRustc {
619614
620615 // See docs in std above for why we symlink
621616 let my_out = builder. crate_doc_out ( target) ;
622- builder. clear_if_dirty ( & my_out, & rustdoc) ;
623617 t ! ( symlink_dir_force( & builder. config, & my_out, & out_dir) ) ;
624618
625619 let mut cargo = builder. cargo ( compiler, Mode :: Rustc , target, "doc" ) ;
@@ -678,7 +672,6 @@ impl Step for Rustc {
678672
679673 // Get the correct compiler for this stage.
680674 let compiler = builder. compiler ( stage, builder. config . build ) ;
681- let rustdoc = builder. rustdoc ( compiler. host ) ;
682675 let compiler = if builder. force_use_stage1 ( compiler, target) {
683676 builder. compiler ( 1 , compiler. host )
684677 } else {
@@ -699,7 +692,6 @@ impl Step for Rustc {
699692 // We do not symlink to the same shared folder that already contains std library
700693 // documentation from previous steps as we do not want to include that.
701694 let out_dir = builder. stage_out ( compiler, Mode :: Rustc ) . join ( target) . join ( "doc" ) ;
702- builder. clear_if_dirty ( & out, & rustdoc) ;
703695 t ! ( symlink_dir_force( & builder. config, & out, & out_dir) ) ;
704696
705697 // Build cargo command.
@@ -780,7 +772,6 @@ impl Step for Rustdoc {
780772
781773 // Get the correct compiler for this stage.
782774 let compiler = builder. compiler ( stage, builder. config . build ) ;
783- let rustdoc = builder. rustdoc ( compiler. host ) ;
784775 let compiler = if builder. force_use_stage1 ( compiler, target) {
785776 builder. compiler ( 1 , compiler. host )
786777 } else {
@@ -803,7 +794,6 @@ impl Step for Rustdoc {
803794 . join ( target)
804795 . join ( "doc" ) ;
805796 t ! ( fs:: create_dir_all( & out_dir) ) ;
806- builder. clear_if_dirty ( & out, & rustdoc) ;
807797 t ! ( symlink_dir_force( & builder. config, & out, & out_dir) ) ;
808798
809799 // Build cargo command.
0 commit comments