mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-11 15:37:15 +00:00
lintcheck: warn if checking a program results in bad exit status
This commit is contained in:
parent
6ee14697d4
commit
225f7e0617
1 changed files with 8 additions and 0 deletions
|
@ -294,6 +294,14 @@ impl Crate {
|
|||
});
|
||||
let stdout = String::from_utf8_lossy(&all_output.stdout);
|
||||
let stderr = String::from_utf8_lossy(&all_output.stderr);
|
||||
let status = &all_output.status;
|
||||
|
||||
if !status.success() {
|
||||
eprintln!(
|
||||
"\nWARNING: bad exit status after checking {} {} \n",
|
||||
self.name, self.version
|
||||
);
|
||||
}
|
||||
|
||||
if fix {
|
||||
if let Some(stderr) = stderr
|
||||
|
|
Loading…
Reference in a new issue