about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-04-26 08:22:47 -0400
committerJoshua Nelson <jyn514@gmail.com>2021-04-28 17:05:47 -0400
commitb28754ab7d2a3440362d208bfd8c3f39511a7eeb (patch)
tree31f2ca489fb25ef4ab7bbc4ddb39ea260bc4ed53 /src/bootstrap
parent7e11f3a8f3c1b2683125e7def0acb68a6d684f92 (diff)
downloadrust-b28754ab7d2a3440362d208bfd8c3f39511a7eeb.tar.gz
rust-b28754ab7d2a3440362d208bfd8c3f39511a7eeb.zip
Add `x.py check src/librustdoc` as an alias for `x.py check src/tools/rustdoc`
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/check.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap/check.rs b/src/bootstrap/check.rs
index 6626fead774..536843d4ec2 100644
--- a/src/bootstrap/check.rs
+++ b/src/bootstrap/check.rs
@@ -280,7 +280,7 @@ impl Step for CodegenBackend {
 }
 
 macro_rules! tool_check_step {
-    ($name:ident, $path:expr, $source_type:expr) => {
+    ($name:ident, $path:literal, $($alias:literal, )* $source_type:path) => {
         #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
         pub struct $name {
             pub target: TargetSelection,
@@ -292,7 +292,7 @@ macro_rules! tool_check_step {
             const DEFAULT: bool = true;
 
             fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
-                run.path($path)
+                run.paths(&[ $path, $($alias),* ])
             }
 
             fn make_run(run: RunConfig<'_>) {
@@ -363,7 +363,7 @@ macro_rules! tool_check_step {
     };
 }
 
-tool_check_step!(Rustdoc, "src/tools/rustdoc", SourceType::InTree);
+tool_check_step!(Rustdoc, "src/tools/rustdoc", "src/librustdoc", SourceType::InTree);
 // Clippy is a hybrid. It is an external tool, but uses a git subtree instead
 // of a submodule. Since the SourceType only drives the deny-warnings
 // behavior, treat it as in-tree so that any new warnings in clippy will be