Skip to content

Commit 2f7cc5a

Browse files
committed
remove output from helpers
1 parent 66beaa6 commit 2f7cc5a

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/bootstrap/src/utils/helpers.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -300,25 +300,6 @@ pub fn make(host: &str) -> PathBuf {
300300
}
301301
}
302302

303-
#[track_caller]
304-
pub fn output(cmd: &mut Command) -> String {
305-
#[cfg(feature = "tracing")]
306-
let _run_span = crate::trace_cmd!(cmd);
307-
308-
let output = match cmd.stderr(Stdio::inherit()).output() {
309-
Ok(status) => status,
310-
Err(e) => fail(&format!("failed to execute command: {cmd:?}\nERROR: {e}")),
311-
};
312-
if !output.status.success() {
313-
panic!(
314-
"command did not execute successfully: {:?}\n\
315-
expected success, got: {}",
316-
cmd, output.status
317-
);
318-
}
319-
String::from_utf8(output.stdout).unwrap()
320-
}
321-
322303
/// Spawn a process and return a closure that will wait for the process
323304
/// to finish and then return its output. This allows the spawned process
324305
/// to do work without immediately blocking bootstrap.

0 commit comments

Comments
 (0)