Skip to content

Commit 8972d5f

Browse files
GuillaumeGomezMark-Simulacrum
authored andcommitted
fail in case nothing to run was found
1 parent d412ee7 commit 8972d5f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/builder.rs

+5
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,16 @@ macro_rules! check {
113113
})+
114114
} else {
115115
for path in paths {
116+
let mut attempted_run = false;
116117
$({
117118
if <$rule>::should_run($self, path) {
119+
attempted_run = true;
118120
$self.maybe_run::<$rule>(Some(path));
119121
}
120122
})+
123+
if !attempted_run {
124+
eprintln!("Warning: no rules matched {}.", path.display());
125+
}
121126
}
122127
}
123128
}};

0 commit comments

Comments
 (0)