Skip to content

Commit d198551

Browse files
committed
lintheck: show output (and compiler errors!) when compiling clippy for lintcheck
1 parent bb5f9d1 commit d198551

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clippy_dev/src/lintcheck.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,13 @@ fn filter_clippy_warnings(line: &str) -> bool {
295295

296296
/// Builds clippy inside the repo to make sure we have a clippy executable we can use.
297297
fn build_clippy() {
298-
let output = Command::new("cargo")
298+
let status = Command::new("cargo")
299299
.arg("build")
300-
.output()
300+
.status()
301301
.expect("Failed to build clippy!");
302-
if !output.status.success() {
303-
eprintln!("Failed to compile Clippy");
304-
eprintln!("stderr: {}", String::from_utf8_lossy(&output.stderr))
302+
if !status.success() {
303+
eprintln!("Error: Failed to compile Clippy!");
304+
std::process::exit(1);
305305
}
306306
}
307307

0 commit comments

Comments
 (0)