@@ -293,7 +293,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
293293 let mut suite = |name, path, mode, dir| {
294294 rules. test ( name, path)
295295 . dep ( |s| s. name ( "libtest" ) )
296- . dep ( |s| s. name ( "tool-compiletest" ) . target ( s. host ) )
296+ . dep ( |s| s. name ( "tool-compiletest" ) . target ( s. host ) . stage ( 0 ) )
297297 . dep ( |s| s. name ( "test-helpers" ) )
298298 . dep ( move |s| {
299299 if s. target . contains ( "android" ) {
@@ -331,7 +331,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
331331 rules. test ( "check-debuginfo" , "src/test/debuginfo" )
332332 . default ( true )
333333 . dep ( |s| s. name ( "libtest" ) )
334- . dep ( |s| s. name ( "tool-compiletest" ) . target ( s. host ) )
334+ . dep ( |s| s. name ( "tool-compiletest" ) . target ( s. host ) . stage ( 0 ) )
335335 . dep ( |s| s. name ( "test-helpers" ) )
336336 . dep ( |s| s. name ( "debugger-scripts" ) )
337337 . run ( move |s| check:: compiletest ( build, & s. compiler ( ) , s. target ,
@@ -340,7 +340,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
340340 rules. test ( "check-debuginfo" , "src/test/debuginfo" )
341341 . default ( true )
342342 . dep ( |s| s. name ( "libtest" ) )
343- . dep ( |s| s. name ( "tool-compiletest" ) . target ( s. host ) )
343+ . dep ( |s| s. name ( "tool-compiletest" ) . target ( s. host ) . stage ( 0 ) )
344344 . dep ( |s| s. name ( "test-helpers" ) )
345345 . dep ( |s| s. name ( "debugger-scripts" ) )
346346 . run ( move |s| check:: compiletest ( build, & s. compiler ( ) , s. target ,
@@ -356,7 +356,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
356356 rules. test ( name, path)
357357 . dep ( |s| s. name ( "librustc" ) )
358358 . dep ( |s| s. name ( "test-helpers" ) )
359- . dep ( |s| s. name ( "tool-compiletest" ) . target ( s. host ) )
359+ . dep ( |s| s. name ( "tool-compiletest" ) . target ( s. host ) . stage ( 0 ) )
360360 . default ( mode != "pretty" )
361361 . host ( true )
362362 . run ( move |s| {
@@ -438,24 +438,24 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
438438 Mode :: Librustc , TestKind :: Test , None ) ) ;
439439
440440 rules. test ( "check-linkchecker" , "src/tools/linkchecker" )
441- . dep ( |s| s. name ( "tool-linkchecker" ) )
441+ . dep ( |s| s. name ( "tool-linkchecker" ) . stage ( 0 ) )
442442 . dep ( |s| s. name ( "default:doc" ) )
443443 . default ( true )
444444 . host ( true )
445- . run ( move |s| check:: linkcheck ( build, s. stage , s . target ) ) ;
445+ . run ( move |s| check:: linkcheck ( build, s. target ) ) ;
446446 rules. test ( "check-cargotest" , "src/tools/cargotest" )
447- . dep ( |s| s. name ( "tool-cargotest" ) )
447+ . dep ( |s| s. name ( "tool-cargotest" ) . stage ( 0 ) )
448448 . dep ( |s| s. name ( "librustc" ) )
449449 . host ( true )
450450 . run ( move |s| check:: cargotest ( build, s. stage , s. target ) ) ;
451451 rules. test ( "check-tidy" , "src/tools/tidy" )
452452 . dep ( |s| s. name ( "tool-tidy" ) . stage ( 0 ) )
453453 . default ( true )
454454 . host ( true )
455- . run ( move |s| check:: tidy ( build, 0 , s. target ) ) ;
455+ . run ( move |s| check:: tidy ( build, s. target ) ) ;
456456 rules. test ( "check-error-index" , "src/tools/error_index_generator" )
457457 . dep ( |s| s. name ( "libstd" ) )
458- . dep ( |s| s. name ( "tool-error-index" ) . host ( s. host ) )
458+ . dep ( |s| s. name ( "tool-error-index" ) . host ( s. host ) . stage ( 0 ) )
459459 . default ( true )
460460 . host ( true )
461461 . run ( move |s| check:: error_index ( build, & s. compiler ( ) ) ) ;
@@ -501,23 +501,23 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
501501 // ========================================================================
502502 // Documentation targets
503503 rules. doc ( "doc-book" , "src/doc/book" )
504- . dep ( move |s| s. name ( "tool-rustbook" ) . target ( & build. config . build ) )
504+ . dep ( move |s| s. name ( "tool-rustbook" ) . target ( & build. config . build ) . stage ( 0 ) )
505505 . default ( build. config . docs )
506- . run ( move |s| doc:: rustbook ( build, s. stage , s . target , "book" ) ) ;
506+ . run ( move |s| doc:: rustbook ( build, s. target , "book" ) ) ;
507507 rules. doc ( "doc-nomicon" , "src/doc/nomicon" )
508- . dep ( move |s| s. name ( "tool-rustbook" ) . target ( & build. config . build ) )
508+ . dep ( move |s| s. name ( "tool-rustbook" ) . target ( & build. config . build ) . stage ( 0 ) )
509509 . default ( build. config . docs )
510- . run ( move |s| doc:: rustbook ( build, s. stage , s . target , "nomicon" ) ) ;
510+ . run ( move |s| doc:: rustbook ( build, s. target , "nomicon" ) ) ;
511511 rules. doc ( "doc-standalone" , "src/doc" )
512512 . dep ( move |s| s. name ( "rustc" ) . host ( & build. config . build ) . target ( & build. config . build ) )
513513 . default ( build. config . docs )
514514 . run ( move |s| doc:: standalone ( build, s. stage , s. target ) ) ;
515515 rules. doc ( "doc-error-index" , "src/tools/error_index_generator" )
516- . dep ( move |s| s. name ( "tool-error-index" ) . target ( & build. config . build ) )
517- . dep ( move |s| s. name ( "librustc-link" ) )
516+ . dep ( move |s| s. name ( "tool-error-index" ) . target ( & build. config . build ) . stage ( 0 ) )
517+ . dep ( move |s| s. name ( "librustc-link" ) . stage ( 0 ) )
518518 . default ( build. config . docs )
519519 . host ( true )
520- . run ( move |s| doc:: error_index ( build, s. stage , s . target ) ) ;
520+ . run ( move |s| doc:: error_index ( build, s. target ) ) ;
521521 for ( krate, path, default) in krates ( "std_shim" ) {
522522 rules. doc ( & krate. doc_step , path)
523523 . dep ( |s| s. name ( "libstd-link" ) )
0 commit comments