We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb5f9d1 commit d198551Copy full SHA for d198551
clippy_dev/src/lintcheck.rs
@@ -295,13 +295,13 @@ fn filter_clippy_warnings(line: &str) -> bool {
295
296
/// Builds clippy inside the repo to make sure we have a clippy executable we can use.
297
fn build_clippy() {
298
- let output = Command::new("cargo")
+ let status = Command::new("cargo")
299
.arg("build")
300
- .output()
+ .status()
301
.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))
+ if !status.success() {
+ eprintln!("Error: Failed to compile Clippy!");
+ std::process::exit(1);
305
}
306
307
0 commit comments