File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -300,25 +300,6 @@ pub fn make(host: &str) -> PathBuf {
300
300
}
301
301
}
302
302
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:?}\n ERROR: {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
-
322
303
/// Spawn a process and return a closure that will wait for the process
323
304
/// to finish and then return its output. This allows the spawned process
324
305
/// to do work without immediately blocking bootstrap.
You can’t perform that action at this time.
0 commit comments