@@ -280,7 +280,7 @@ impl Step for CodegenBackend {
280
280
}
281
281
282
282
macro_rules! tool_check_step {
283
- ( $name: ident, $path: expr , $source_type: expr ) => {
283
+ ( $name: ident, $path: literal , $( $alias : literal , ) * $ source_type: path ) => {
284
284
#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
285
285
pub struct $name {
286
286
pub target: TargetSelection ,
@@ -292,7 +292,7 @@ macro_rules! tool_check_step {
292
292
const DEFAULT : bool = true ;
293
293
294
294
fn should_run( run: ShouldRun <' _>) -> ShouldRun <' _> {
295
- run. path ( $path)
295
+ run. paths ( & [ $path, $ ( $alias ) , * ] )
296
296
}
297
297
298
298
fn make_run( run: RunConfig <' _>) {
@@ -361,7 +361,7 @@ macro_rules! tool_check_step {
361
361
} ;
362
362
}
363
363
364
- tool_check_step ! ( Rustdoc , "src/tools/rustdoc" , SourceType :: InTree ) ;
364
+ tool_check_step ! ( Rustdoc , "src/tools/rustdoc" , "src/librustdoc" , SourceType :: InTree ) ;
365
365
// Clippy is a hybrid. It is an external tool, but uses a git subtree instead
366
366
// of a submodule. Since the SourceType only drives the deny-warnings
367
367
// behavior, treat it as in-tree so that any new warnings in clippy will be
0 commit comments