@@ -293,7 +293,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
293
293
let mut suite = |name, path, mode, dir| {
294
294
rules. test ( name, path)
295
295
. 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 ) )
297
297
. dep ( |s| s. name ( "test-helpers" ) )
298
298
. dep ( move |s| {
299
299
if s. target . contains ( "android" ) {
@@ -331,7 +331,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
331
331
rules. test ( "check-debuginfo" , "src/test/debuginfo" )
332
332
. default ( true )
333
333
. 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 ) )
335
335
. dep ( |s| s. name ( "test-helpers" ) )
336
336
. dep ( |s| s. name ( "debugger-scripts" ) )
337
337
. run ( move |s| check:: compiletest ( build, & s. compiler ( ) , s. target ,
@@ -340,7 +340,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
340
340
rules. test ( "check-debuginfo" , "src/test/debuginfo" )
341
341
. default ( true )
342
342
. 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 ) )
344
344
. dep ( |s| s. name ( "test-helpers" ) )
345
345
. dep ( |s| s. name ( "debugger-scripts" ) )
346
346
. run ( move |s| check:: compiletest ( build, & s. compiler ( ) , s. target ,
@@ -356,7 +356,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
356
356
rules. test ( name, path)
357
357
. dep ( |s| s. name ( "librustc" ) )
358
358
. 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 ) )
360
360
. default ( mode != "pretty" )
361
361
. host ( true )
362
362
. run ( move |s| {
@@ -438,24 +438,24 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
438
438
Mode :: Librustc , TestKind :: Test , None ) ) ;
439
439
440
440
rules. test ( "check-linkchecker" , "src/tools/linkchecker" )
441
- . dep ( |s| s. name ( "tool-linkchecker" ) )
441
+ . dep ( |s| s. name ( "tool-linkchecker" ) . stage ( 0 ) )
442
442
. dep ( |s| s. name ( "default:doc" ) )
443
443
. default ( true )
444
444
. host ( true )
445
- . run ( move |s| check:: linkcheck ( build, s. stage , s . target ) ) ;
445
+ . run ( move |s| check:: linkcheck ( build, s. target ) ) ;
446
446
rules. test ( "check-cargotest" , "src/tools/cargotest" )
447
- . dep ( |s| s. name ( "tool-cargotest" ) )
447
+ . dep ( |s| s. name ( "tool-cargotest" ) . stage ( 0 ) )
448
448
. dep ( |s| s. name ( "librustc" ) )
449
449
. host ( true )
450
450
. run ( move |s| check:: cargotest ( build, s. stage , s. target ) ) ;
451
451
rules. test ( "check-tidy" , "src/tools/tidy" )
452
452
. dep ( |s| s. name ( "tool-tidy" ) . stage ( 0 ) )
453
453
. default ( true )
454
454
. host ( true )
455
- . run ( move |s| check:: tidy ( build, 0 , s. target ) ) ;
455
+ . run ( move |s| check:: tidy ( build, s. target ) ) ;
456
456
rules. test ( "check-error-index" , "src/tools/error_index_generator" )
457
457
. 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 ) )
459
459
. default ( true )
460
460
. host ( true )
461
461
. run ( move |s| check:: error_index ( build, & s. compiler ( ) ) ) ;
@@ -501,23 +501,23 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
501
501
// ========================================================================
502
502
// Documentation targets
503
503
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 ) )
505
505
. 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" ) ) ;
507
507
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 ) )
509
509
. 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" ) ) ;
511
511
rules. doc ( "doc-standalone" , "src/doc" )
512
512
. dep ( move |s| s. name ( "rustc" ) . host ( & build. config . build ) . target ( & build. config . build ) )
513
513
. default ( build. config . docs )
514
514
. run ( move |s| doc:: standalone ( build, s. stage , s. target ) ) ;
515
515
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 ) )
518
518
. default ( build. config . docs )
519
519
. host ( true )
520
- . run ( move |s| doc:: error_index ( build, s. stage , s . target ) ) ;
520
+ . run ( move |s| doc:: error_index ( build, s. target ) ) ;
521
521
for ( krate, path, default) in krates ( "std_shim" ) {
522
522
rules. doc ( & krate. doc_step , path)
523
523
. dep ( |s| s. name ( "libstd-link" ) )
0 commit comments