mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 08:36:03 +00:00
fail in case nothing to run was found
This commit is contained in:
parent
f19728f4c7
commit
828b661ae0
@ -113,11 +113,16 @@ macro_rules! check {
|
||||
})+
|
||||
} else {
|
||||
for path in paths {
|
||||
let mut attempted_run = false;
|
||||
$({
|
||||
if <$rule>::should_run($self, path) {
|
||||
attempted_run = true;
|
||||
$self.maybe_run::<$rule>(Some(path));
|
||||
}
|
||||
})+
|
||||
if !attempted_run {
|
||||
eprintln!("Warning: no rules matched {}.", path.display());
|
||||
}
|
||||
}
|
||||
}
|
||||
}};
|
||||
|
Loading…
Reference in New Issue
Block a user