Skip to content

Commit

Permalink
fail in case nothing to run was found
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez authored and Mark-Simulacrum committed Jul 16, 2017
1 parent d412ee7 commit 8972d5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
}
}};
Expand Down

0 comments on commit 8972d5f

Please sign in to comment.