@@ -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 ( |s| s. name ( "android-copy-libs" ) )
299
299
. default ( mode != "pretty" ) // pretty tests don't run everywhere
@@ -325,7 +325,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
325
325
rules. test ( "check-debuginfo" , "src/test/debuginfo" )
326
326
. default ( true )
327
327
. 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 ) )
329
329
. dep ( |s| s. name ( "test-helpers" ) )
330
330
. dep ( |s| s. name ( "debugger-scripts" ) )
331
331
. run ( move |s| check:: compiletest ( build, & s. compiler ( ) , s. target ,
@@ -334,7 +334,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
334
334
rules. test ( "check-debuginfo" , "src/test/debuginfo" )
335
335
. default ( true )
336
336
. 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 ) )
338
338
. dep ( |s| s. name ( "test-helpers" ) )
339
339
. dep ( |s| s. name ( "debugger-scripts" ) )
340
340
. dep ( |s| s. name ( "android-copy-libs" ) )
@@ -351,7 +351,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
351
351
rules. test ( name, path)
352
352
. dep ( |s| s. name ( "librustc" ) )
353
353
. 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 ) )
355
355
. default ( mode != "pretty" )
356
356
. host ( true )
357
357
. run ( move |s| {
@@ -441,24 +441,24 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
441
441
Mode :: Librustc , TestKind :: Test , None ) ) ;
442
442
443
443
rules. test ( "check-linkchecker" , "src/tools/linkchecker" )
444
- . dep ( |s| s. name ( "tool-linkchecker" ) )
444
+ . dep ( |s| s. name ( "tool-linkchecker" ) . stage ( 0 ) )
445
445
. dep ( |s| s. name ( "default:doc" ) )
446
446
. default ( true )
447
447
. host ( true )
448
- . run ( move |s| check:: linkcheck ( build, s. stage , s . target ) ) ;
448
+ . run ( move |s| check:: linkcheck ( build, s. target ) ) ;
449
449
rules. test ( "check-cargotest" , "src/tools/cargotest" )
450
- . dep ( |s| s. name ( "tool-cargotest" ) )
450
+ . dep ( |s| s. name ( "tool-cargotest" ) . stage ( 0 ) )
451
451
. dep ( |s| s. name ( "librustc" ) )
452
452
. host ( true )
453
453
. run ( move |s| check:: cargotest ( build, s. stage , s. target ) ) ;
454
454
rules. test ( "check-tidy" , "src/tools/tidy" )
455
455
. dep ( |s| s. name ( "tool-tidy" ) . stage ( 0 ) )
456
456
. default ( true )
457
457
. host ( true )
458
- . run ( move |s| check:: tidy ( build, 0 , s. target ) ) ;
458
+ . run ( move |s| check:: tidy ( build, s. target ) ) ;
459
459
rules. test ( "check-error-index" , "src/tools/error_index_generator" )
460
460
. 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 ) )
462
462
. default ( true )
463
463
. host ( true )
464
464
. run ( move |s| check:: error_index ( build, & s. compiler ( ) ) ) ;
@@ -504,23 +504,23 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
504
504
// ========================================================================
505
505
// Documentation targets
506
506
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 ) )
508
508
. 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" ) ) ;
510
510
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 ) )
512
512
. 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" ) ) ;
514
514
rules. doc ( "doc-standalone" , "src/doc" )
515
515
. dep ( move |s| s. name ( "rustc" ) . host ( & build. config . build ) . target ( & build. config . build ) )
516
516
. default ( build. config . docs )
517
517
. run ( move |s| doc:: standalone ( build, s. stage , s. target ) ) ;
518
518
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 ) )
521
521
. default ( build. config . docs )
522
522
. host ( true )
523
- . run ( move |s| doc:: error_index ( build, s. stage , s . target ) ) ;
523
+ . run ( move |s| doc:: error_index ( build, s. target ) ) ;
524
524
for ( krate, path, default) in krates ( "std_shim" ) {
525
525
rules. doc ( & krate. doc_step , path)
526
526
. dep ( |s| s. name ( "libstd-link" ) )
0 commit comments