@@ -280,7 +280,7 @@ impl Step for CodegenBackend {
280280}
281281
282282macro_rules! tool_check_step {
283- ( $name: ident, $path: expr , $source_type: expr ) => {
283+ ( $name: ident, $path: literal , $( $alias : literal , ) * $ source_type: path ) => {
284284 #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
285285 pub struct $name {
286286 pub target: TargetSelection ,
@@ -292,7 +292,7 @@ macro_rules! tool_check_step {
292292 const DEFAULT : bool = true ;
293293
294294 fn should_run( run: ShouldRun <' _>) -> ShouldRun <' _> {
295- run. path ( $path)
295+ run. paths ( & [ $path, $ ( $alias ) , * ] )
296296 }
297297
298298 fn make_run( run: RunConfig <' _>) {
@@ -361,7 +361,7 @@ macro_rules! tool_check_step {
361361 } ;
362362}
363363
364- tool_check_step ! ( Rustdoc , "src/tools/rustdoc" , SourceType :: InTree ) ;
364+ tool_check_step ! ( Rustdoc , "src/tools/rustdoc" , "src/librustdoc" , SourceType :: InTree ) ;
365365// Clippy is a hybrid. It is an external tool, but uses a git subtree instead
366366// of a submodule. Since the SourceType only drives the deny-warnings
367367// behavior, treat it as in-tree so that any new warnings in clippy will be
0 commit comments