@@ -402,7 +402,6 @@ impl Step for RustAnalyzer {
402
402
macro_rules! tool_check_step {
403
403
(
404
404
$name: ident,
405
- $display_name: literal,
406
405
$path: literal,
407
406
$( $alias: literal, ) *
408
407
$source_type: path
@@ -429,7 +428,7 @@ macro_rules! tool_check_step {
429
428
430
429
fn run( self , builder: & Builder <' _>) {
431
430
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) ;
433
432
}
434
433
}
435
434
}
@@ -440,10 +439,10 @@ fn run_tool_check_step(
440
439
builder : & Builder < ' _ > ,
441
440
target : TargetSelection ,
442
441
step_type_name : & str ,
443
- display_name : & str ,
444
442
path : & str ,
445
443
source_type : SourceType ,
446
444
) {
445
+ let display_name = path. rsplit ( '/' ) . next ( ) . unwrap ( ) ;
447
446
let compiler = builder. compiler ( builder. top_stage , builder. config . build ) ;
448
447
449
448
builder. ensure ( Rustc :: new ( target, builder) ) ;
@@ -473,33 +472,23 @@ fn run_tool_check_step(
473
472
run_cargo ( builder, cargo, builder. config . free_args . clone ( ) , & stamp, vec ! [ ] , true , false ) ;
474
473
}
475
474
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 ) ;
477
476
// Clippy, miri and Rustfmt are hybrids. They are external tools, but use a git subtree instead
478
477
// of a submodule. Since the SourceType only drives the deny-warnings
479
478
// behavior, treat it as in-tree so that any new warnings in clippy will be
480
479
// 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 ) ;
500
489
// Compiletest is implicitly "checked" when it gets built in order to run tests,
501
490
// 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 ) ;
503
492
504
493
/// Cargo's output path for the standard library in a given stage, compiled
505
494
/// by a particular compiler for the specified target.
0 commit comments