We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 132d9d3 commit 6a309afCopy full SHA for 6a309af
src/lib.rs
@@ -122,13 +122,11 @@ pub fn main() {
122
if let Some("clippy") = std::env::args().nth(1).as_ref().map(AsRef::as_ref) {
123
let args = wrap_args(std::env::args().skip(2), dep_path, sys_root);
124
let path = std::env::current_exe().expect("current executable path invalid");
125
- let run = std::process::Command::new("cargo")
+ std::process::Command::new("cargo")
126
.args(&args)
127
.env("RUSTC", path)
128
.spawn().expect("could not run cargo")
129
- .wait().expect("failed to wait for cargo?")
130
- .success();
131
- assert!(run, "cargo rustc failed");
+ .wait().expect("failed to wait for cargo?");
132
} else {
133
let args: Vec<String> = if env::args().any(|s| s == "--sysroot") {
134
env::args().collect()
0 commit comments