@@ -37,7 +37,6 @@ impl Std {
3737
3838impl Step for Std {
3939 type Output = BuildStamp ;
40- const DEFAULT : bool = true ;
4140
4241 fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
4342 let mut run = run;
@@ -48,6 +47,10 @@ impl Step for Std {
4847 run. path ( "library" )
4948 }
5049
50+ fn is_default_step ( _builder : & Builder < ' _ > ) -> bool {
51+ true
52+ }
53+
5154 fn make_run ( run : RunConfig < ' _ > ) {
5255 if !run. builder . download_rustc ( ) && run. builder . config . skip_std_check_if_no_download_rustc {
5356 eprintln ! (
@@ -310,12 +313,15 @@ impl Rustc {
310313impl Step for Rustc {
311314 type Output = BuildStamp ;
312315 const IS_HOST : bool = true ;
313- const DEFAULT : bool = true ;
314316
315317 fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
316318 run. crate_or_deps ( "rustc-main" ) . path ( "compiler" )
317319 }
318320
321+ fn is_default_step ( _builder : & Builder < ' _ > ) -> bool {
322+ true
323+ }
324+
319325 fn make_run ( run : RunConfig < ' _ > ) {
320326 let crates = run. make_run_crates ( Alias :: Compiler ) ;
321327 run. builder . ensure ( Rustc :: new ( run. builder , run. target , crates) ) ;
@@ -510,14 +516,16 @@ pub struct CraneliftCodegenBackend {
510516
511517impl Step for CraneliftCodegenBackend {
512518 type Output = ( ) ;
513-
514519 const IS_HOST : bool = true ;
515- const DEFAULT : bool = true ;
516520
517521 fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
518522 run. alias ( "rustc_codegen_cranelift" ) . alias ( "cg_clif" )
519523 }
520524
525+ fn is_default_step ( _builder : & Builder < ' _ > ) -> bool {
526+ true
527+ }
528+
521529 fn make_run ( run : RunConfig < ' _ > ) {
522530 run. builder . ensure ( CraneliftCodegenBackend {
523531 build_compiler : prepare_compiler_for_check ( run. builder , run. target , Mode :: Codegen ) ,
@@ -580,14 +588,16 @@ pub struct GccCodegenBackend {
580588
581589impl Step for GccCodegenBackend {
582590 type Output = ( ) ;
583-
584591 const IS_HOST : bool = true ;
585- const DEFAULT : bool = true ;
586592
587593 fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
588594 run. alias ( "rustc_codegen_gcc" ) . alias ( "cg_gcc" )
589595 }
590596
597+ fn is_default_step ( _builder : & Builder < ' _ > ) -> bool {
598+ true
599+ }
600+
591601 fn make_run ( run : RunConfig < ' _ > ) {
592602 run. builder . ensure ( GccCodegenBackend {
593603 build_compiler : prepare_compiler_for_check ( run. builder , run. target , Mode :: Codegen ) ,
@@ -665,13 +675,16 @@ macro_rules! tool_check_step {
665675 impl Step for $name {
666676 type Output = ( ) ;
667677 const IS_HOST : bool = true ;
668- /// Most of the tool-checks using this macro are run by default.
669- const DEFAULT : bool = true $( && $default ) ?;
670678
671679 fn should_run( run: ShouldRun <' _>) -> ShouldRun <' _> {
672680 run. paths( & [ $path, $( $alt_path ) ,* ] )
673681 }
674682
683+ fn is_default_step( _builder: & Builder <' _>) -> bool {
684+ // Most of the tool-checks using this macro are run by default.
685+ true $( && const { $default } ) ?
686+ }
687+
675688 fn make_run( run: RunConfig <' _>) {
676689 let target = run. target;
677690 let mode: Mode = $mode;
0 commit comments