File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,16 @@ fn main() {
46
46
/// Run `cargo build` with the provided additional arguments, collecting the list of created
47
47
/// libraries.
48
48
fn exec_cargo_with_args ( args : & [ & str ] ) -> Vec < PathBuf > {
49
- let mut cmd = Command :: new ( "cargo" )
50
- . arg ( "build" )
49
+ let mut cmd = Command :: new ( "cargo" ) ;
50
+ cmd . arg ( "build" )
51
51
. arg ( "--message-format=json" )
52
52
. args ( args)
53
- . stdout ( Stdio :: piped ( ) )
54
- . spawn ( )
55
- . expect ( "failed to launch Cargo" ) ;
53
+ . stdout ( Stdio :: piped ( ) ) ;
56
54
57
- let stdout = cmd. stdout . take ( ) . unwrap ( ) ;
55
+ println ! ( "running: {cmd:?}" ) ;
56
+ let mut child = cmd. spawn ( ) . expect ( "failed to launch Cargo" ) ;
57
+
58
+ let stdout = child. stdout . take ( ) . unwrap ( ) ;
58
59
let reader = BufReader :: new ( stdout) ;
59
60
let mut check_files = Vec :: new ( ) ;
60
61
@@ -84,7 +85,7 @@ fn exec_cargo_with_args(args: &[&str]) -> Vec<PathBuf> {
84
85
}
85
86
}
86
87
87
- assert ! ( cmd . wait( ) . expect( "failed to wait on Cargo" ) . success( ) ) ;
88
+ assert ! ( child . wait( ) . expect( "failed to wait on Cargo" ) . success( ) ) ;
88
89
89
90
assert ! ( !check_files. is_empty( ) , "no compiler_builtins rlibs found" ) ;
90
91
println ! ( "Collected the following rlibs to check: {check_files:#?}" ) ;
You can’t perform that action at this time.
0 commit comments