@@ -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 ( |s| s. name ( "android-copy-libs" ) )
299299 . default ( mode != "pretty" ) // pretty tests don't run everywhere
@@ -325,7 +325,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
325325 rules. test ( "check-debuginfo" , "src/test/debuginfo" )
326326 . default ( true )
327327 . dep ( |s| s. name ( "libtest" ) )
328- . dep ( |s| s. name ( "tool-compiletest" ) . target ( s. host ) )
328+ . dep ( |s| s. name ( "tool-compiletest" ) . target ( s. host ) . stage ( 0 ) )
329329 . dep ( |s| s. name ( "test-helpers" ) )
330330 . dep ( |s| s. name ( "debugger-scripts" ) )
331331 . run ( move |s| check:: compiletest ( build, & s. compiler ( ) , s. target ,
@@ -334,7 +334,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
334334 rules. test ( "check-debuginfo" , "src/test/debuginfo" )
335335 . default ( true )
336336 . dep ( |s| s. name ( "libtest" ) )
337- . dep ( |s| s. name ( "tool-compiletest" ) . target ( s. host ) )
337+ . dep ( |s| s. name ( "tool-compiletest" ) . target ( s. host ) . stage ( 0 ) )
338338 . dep ( |s| s. name ( "test-helpers" ) )
339339 . dep ( |s| s. name ( "debugger-scripts" ) )
340340 . dep ( |s| s. name ( "android-copy-libs" ) )
@@ -351,7 +351,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
351351 rules. test ( name, path)
352352 . dep ( |s| s. name ( "librustc" ) )
353353 . dep ( |s| s. name ( "test-helpers" ) )
354- . dep ( |s| s. name ( "tool-compiletest" ) . target ( s. host ) )
354+ . dep ( |s| s. name ( "tool-compiletest" ) . target ( s. host ) . stage ( 0 ) )
355355 . default ( mode != "pretty" )
356356 . host ( true )
357357 . run ( move |s| {
@@ -441,24 +441,24 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
441441 Mode :: Librustc , TestKind :: Test , None ) ) ;
442442
443443 rules. test ( "check-linkchecker" , "src/tools/linkchecker" )
444- . dep ( |s| s. name ( "tool-linkchecker" ) )
444+ . dep ( |s| s. name ( "tool-linkchecker" ) . stage ( 0 ) )
445445 . dep ( |s| s. name ( "default:doc" ) )
446446 . default ( true )
447447 . host ( true )
448- . run ( move |s| check:: linkcheck ( build, s. stage , s . target ) ) ;
448+ . run ( move |s| check:: linkcheck ( build, s. target ) ) ;
449449 rules. test ( "check-cargotest" , "src/tools/cargotest" )
450- . dep ( |s| s. name ( "tool-cargotest" ) )
450+ . dep ( |s| s. name ( "tool-cargotest" ) . stage ( 0 ) )
451451 . dep ( |s| s. name ( "librustc" ) )
452452 . host ( true )
453453 . run ( move |s| check:: cargotest ( build, s. stage , s. target ) ) ;
454454 rules. test ( "check-tidy" , "src/tools/tidy" )
455455 . dep ( |s| s. name ( "tool-tidy" ) . stage ( 0 ) )
456456 . default ( true )
457457 . host ( true )
458- . run ( move |s| check:: tidy ( build, 0 , s. target ) ) ;
458+ . run ( move |s| check:: tidy ( build, s. target ) ) ;
459459 rules. test ( "check-error-index" , "src/tools/error_index_generator" )
460460 . dep ( |s| s. name ( "libstd" ) )
461- . dep ( |s| s. name ( "tool-error-index" ) . host ( s. host ) )
461+ . dep ( |s| s. name ( "tool-error-index" ) . host ( s. host ) . stage ( 0 ) )
462462 . default ( true )
463463 . host ( true )
464464 . run ( move |s| check:: error_index ( build, & s. compiler ( ) ) ) ;
@@ -504,23 +504,23 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
504504 // ========================================================================
505505 // Documentation targets
506506 rules. doc ( "doc-book" , "src/doc/book" )
507- . dep ( move |s| s. name ( "tool-rustbook" ) . target ( & build. config . build ) )
507+ . dep ( move |s| s. name ( "tool-rustbook" ) . target ( & build. config . build ) . stage ( 0 ) )
508508 . default ( build. config . docs )
509- . run ( move |s| doc:: rustbook ( build, s. stage , s . target , "book" ) ) ;
509+ . run ( move |s| doc:: rustbook ( build, s. target , "book" ) ) ;
510510 rules. doc ( "doc-nomicon" , "src/doc/nomicon" )
511- . dep ( move |s| s. name ( "tool-rustbook" ) . target ( & build. config . build ) )
511+ . dep ( move |s| s. name ( "tool-rustbook" ) . target ( & build. config . build ) . stage ( 0 ) )
512512 . default ( build. config . docs )
513- . run ( move |s| doc:: rustbook ( build, s. stage , s . target , "nomicon" ) ) ;
513+ . run ( move |s| doc:: rustbook ( build, s. target , "nomicon" ) ) ;
514514 rules. doc ( "doc-standalone" , "src/doc" )
515515 . dep ( move |s| s. name ( "rustc" ) . host ( & build. config . build ) . target ( & build. config . build ) )
516516 . default ( build. config . docs )
517517 . run ( move |s| doc:: standalone ( build, s. stage , s. target ) ) ;
518518 rules. doc ( "doc-error-index" , "src/tools/error_index_generator" )
519- . dep ( move |s| s. name ( "tool-error-index" ) . target ( & build. config . build ) )
520- . dep ( move |s| s. name ( "librustc-link" ) )
519+ . dep ( move |s| s. name ( "tool-error-index" ) . target ( & build. config . build ) . stage ( 0 ) )
520+ . dep ( move |s| s. name ( "librustc-link" ) . stage ( 0 ) )
521521 . default ( build. config . docs )
522522 . host ( true )
523- . run ( move |s| doc:: error_index ( build, s. stage , s . target ) ) ;
523+ . run ( move |s| doc:: error_index ( build, s. target ) ) ;
524524 for ( krate, path, default) in krates ( "std_shim" ) {
525525 rules. doc ( & krate. doc_step , path)
526526 . dep ( |s| s. name ( "libstd-link" ) )
0 commit comments