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.
build_command
fn cached_output
1 parent 4f6a2ec commit 734569cCopy full SHA for 734569c
src/cargo/util/rustc.rs
@@ -231,10 +231,7 @@ impl Cache {
231
} else {
232
debug!("rustc info cache miss");
233
debug!("running {}", cmd);
234
- let output = cmd
235
- .build_command()
236
- .output()
237
- .with_context(|| format!("could not execute process {} (never executed)", cmd))?;
+ let output = cmd.output()?;
238
let stdout = String::from_utf8(output.stdout)
239
.map_err(|e| anyhow::anyhow!("{}: {:?}", e, e.as_bytes()))
240
.with_context(|| format!("`{}` didn't return utf8 output", cmd))?;
0 commit comments