Only call default steps once, not once for each PathSet

Running steps multiple times defeats the whole point of #96501,
since lint messages will be duplicated.
This commit is contained in:
Joshua Nelson 2022-06-19 17:25:20 -05:00
parent 0e1a6fb463
commit ee8e0bc582

View file

@ -304,9 +304,7 @@ impl StepDescription {
if paths.is_empty() || builder.config.include_default_paths {
for (desc, should_run) in v.iter().zip(&should_runs) {
if desc.default && should_run.is_really_default() {
for pathset in &should_run.paths {
desc.maybe_run(builder, vec![pathset.clone()]);
}
desc.maybe_run(builder, should_run.paths.iter().cloned().collect());
}
}
}