We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d67f57 commit 9296d3bCopy full SHA for 9296d3b
src/bootstrap/tool.rs
@@ -607,7 +607,15 @@ macro_rules! tool_extended {
607
608
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
609
let builder = run.builder;
610
- run.path($path).default_condition(builder.config.extended)
+ run.path($path).default_condition(
611
+ builder.config.extended
612
+ && builder.config.tools.as_ref().map_or(true, |tools| {
613
+ tools.iter().any(|tool| match tool.as_ref() {
614
+ "clippy" => $tool_name == "clippy-driver",
615
+ x => $tool_name == x,
616
+ })
617
+ }),
618
+ )
619
}
620
621
fn make_run(run: RunConfig<'_>) {
0 commit comments