Skip to content

Commit e6dce23

Browse files
authored
Rollup merge of #84585 - jyn514:check-rustdoc, r=Mark-Simulacrum
Add `x.py check src/librustdoc` as an alias for `x.py check src/tools/rustdoc` I keep making this typo, it would be nice for it to be supported.
2 parents 87b2ace + b28754a commit e6dce23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/bootstrap/check.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl Step for CodegenBackend {
280280
}
281281

282282
macro_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

Comments
 (0)