@@ -402,7 +402,6 @@ impl Step for RustAnalyzer {
402402macro_rules! tool_check_step {
403403 (
404404 $name: ident,
405- $display_name: literal,
406405 $path: literal,
407406 $( $alias: literal, ) *
408407 $source_type: path
@@ -429,7 +428,7 @@ macro_rules! tool_check_step {
429428
430429 fn run( self , builder: & Builder <' _>) {
431430 let Self { target } = self ;
432- run_tool_check_step( builder, target, stringify!( $name) , $display_name , $ path, $source_type) ;
431+ run_tool_check_step( builder, target, stringify!( $name) , $path, $source_type) ;
433432 }
434433 }
435434 }
@@ -440,10 +439,10 @@ fn run_tool_check_step(
440439 builder : & Builder < ' _ > ,
441440 target : TargetSelection ,
442441 step_type_name : & str ,
443- display_name : & str ,
444442 path : & str ,
445443 source_type : SourceType ,
446444) {
445+ let display_name = path. rsplit ( '/' ) . next ( ) . unwrap ( ) ;
447446 let compiler = builder. compiler ( builder. top_stage , builder. config . build ) ;
448447
449448 builder. ensure ( Rustc :: new ( target, builder) ) ;
@@ -473,33 +472,23 @@ fn run_tool_check_step(
473472 run_cargo ( builder, cargo, builder. config . free_args . clone ( ) , & stamp, vec ! [ ] , true , false ) ;
474473}
475474
476- tool_check_step ! ( Rustdoc , "rustdoc" , " src/tools/rustdoc", "src/librustdoc" , SourceType :: InTree ) ;
475+ tool_check_step ! ( Rustdoc , "src/tools/rustdoc" , "src/librustdoc" , SourceType :: InTree ) ;
477476// Clippy, miri and Rustfmt are hybrids. They are external tools, but use a git subtree instead
478477// of a submodule. Since the SourceType only drives the deny-warnings
479478// behavior, treat it as in-tree so that any new warnings in clippy will be
480479// rejected.
481- tool_check_step ! ( Clippy , "clippy" , "src/tools/clippy" , SourceType :: InTree ) ;
482- tool_check_step ! ( Miri , "miri" , "src/tools/miri" , SourceType :: InTree ) ;
483- tool_check_step ! ( CargoMiri , "cargo-miri" , "src/tools/miri/cargo-miri" , SourceType :: InTree ) ;
484- tool_check_step ! ( Rls , "rls" , "src/tools/rls" , SourceType :: InTree ) ;
485- tool_check_step ! ( Rustfmt , "rustfmt" , "src/tools/rustfmt" , SourceType :: InTree ) ;
486- tool_check_step ! (
487- MiroptTestTools ,
488- "miropt-test-tools" ,
489- "src/tools/miropt-test-tools" ,
490- SourceType :: InTree
491- ) ;
492- tool_check_step ! (
493- TestFloatParse ,
494- "test-float-parse" ,
495- "src/etc/test-float-parse" ,
496- SourceType :: InTree
497- ) ;
498-
499- tool_check_step ! ( Bootstrap , "bootstrap" , "src/bootstrap" , SourceType :: InTree , false ) ;
480+ tool_check_step ! ( Clippy , "src/tools/clippy" , SourceType :: InTree ) ;
481+ tool_check_step ! ( Miri , "src/tools/miri" , SourceType :: InTree ) ;
482+ tool_check_step ! ( CargoMiri , "src/tools/miri/cargo-miri" , SourceType :: InTree ) ;
483+ tool_check_step ! ( Rls , "src/tools/rls" , SourceType :: InTree ) ;
484+ tool_check_step ! ( Rustfmt , "src/tools/rustfmt" , SourceType :: InTree ) ;
485+ tool_check_step ! ( MiroptTestTools , "src/tools/miropt-test-tools" , SourceType :: InTree ) ;
486+ tool_check_step ! ( TestFloatParse , "src/etc/test-float-parse" , SourceType :: InTree ) ;
487+
488+ tool_check_step ! ( Bootstrap , "src/bootstrap" , SourceType :: InTree , false ) ;
500489// Compiletest is implicitly "checked" when it gets built in order to run tests,
501490// so this is mainly for people working on compiletest to run locally.
502- tool_check_step ! ( Compiletest , "compiletest" , " src/tools/compiletest", SourceType :: InTree , false ) ;
491+ tool_check_step ! ( Compiletest , "src/tools/compiletest" , SourceType :: InTree , false ) ;
503492
504493/// Cargo's output path for the standard library in a given stage, compiled
505494/// by a particular compiler for the specified target.
0 commit comments