diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-07-10 16:27:46 +0200 |
|---|---|---|
| committer | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-07-20 11:24:36 -0600 |
| commit | 828b661ae0eea533d950ea4dcc7a1c931c5c35c4 (patch) | |
| tree | f32f346901eaf845fb12f2ea9428c17218f20191 /src/bootstrap | |
| parent | f19728f4c7ff24dd3c13bf49eff164649c26495b (diff) | |
fail in case nothing to run was found
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/builder.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 8740d7a1eb3..2338ac1a692 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -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()); + } } } }}; |
