Skip to content

Commit

Permalink
Rollup merge of rust-lang#84585 - jyn514:check-rustdoc, r=Mark-Simula…
Browse files Browse the repository at this point in the history
…crum

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.
  • Loading branch information
jackh726 committed Apr 28, 2021
2 parents 9d5bc31 + b28754a commit 1ecc464
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bootstrap/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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<'_>) {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1ecc464

Please sign in to comment.