Skip to content

Commit 734569c

Browse files
committed
Avoid calling build_command in fn cached_output
1 parent 4f6a2ec commit 734569c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/cargo/util/rustc.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,7 @@ impl Cache {
231231
} else {
232232
debug!("rustc info cache miss");
233233
debug!("running {}", cmd);
234-
let output = cmd
235-
.build_command()
236-
.output()
237-
.with_context(|| format!("could not execute process {} (never executed)", cmd))?;
234+
let output = cmd.output()?;
238235
let stdout = String::from_utf8(output.stdout)
239236
.map_err(|e| anyhow::anyhow!("{}: {:?}", e, e.as_bytes()))
240237
.with_context(|| format!("`{}` didn't return utf8 output", cmd))?;

0 commit comments

Comments
 (0)