@@ -1259,7 +1259,7 @@ impl Config {
1259
1259
cmd. arg ( "rev-parse" ) . arg ( "--show-cdup" ) ;
1260
1260
// Discard stderr because we expect this to fail when building from a tarball.
1261
1261
let output = cmd
1262
- . command
1262
+ . as_command_mut ( )
1263
1263
. stderr ( std:: process:: Stdio :: null ( ) )
1264
1264
. output ( )
1265
1265
. ok ( )
@@ -2142,7 +2142,7 @@ impl Config {
2142
2142
2143
2143
let mut git = helpers:: git ( Some ( & self . src ) ) ;
2144
2144
git. arg ( "show" ) . arg ( format ! ( "{commit}:{}" , file. to_str( ) . unwrap( ) ) ) ;
2145
- output ( & mut git. command )
2145
+ output ( git. as_command_mut ( ) )
2146
2146
}
2147
2147
2148
2148
/// Bootstrap embeds a version number into the name of shared libraries it uploads in CI.
@@ -2447,7 +2447,7 @@ impl Config {
2447
2447
2448
2448
// Handle running from a directory other than the top level
2449
2449
let top_level = output (
2450
- & mut helpers:: git ( Some ( & self . src ) ) . args ( [ "rev-parse" , "--show-toplevel" ] ) . command ,
2450
+ helpers:: git ( Some ( & self . src ) ) . args ( [ "rev-parse" , "--show-toplevel" ] ) . as_command_mut ( ) ,
2451
2451
) ;
2452
2452
let top_level = top_level. trim_end ( ) ;
2453
2453
let compiler = format ! ( "{top_level}/compiler/" ) ;
@@ -2456,11 +2456,11 @@ impl Config {
2456
2456
// Look for a version to compare to based on the current commit.
2457
2457
// Only commits merged by bors will have CI artifacts.
2458
2458
let merge_base = output (
2459
- & mut helpers:: git ( Some ( & self . src ) )
2459
+ helpers:: git ( Some ( & self . src ) )
2460
2460
. arg ( "rev-list" )
2461
2461
. arg ( format ! ( "--author={}" , self . stage0_metadata. config. git_merge_commit_email) )
2462
2462
. args ( [ "-n1" , "--first-parent" , "HEAD" ] )
2463
- . command ,
2463
+ . as_command_mut ( ) ,
2464
2464
) ;
2465
2465
let commit = merge_base. trim_end ( ) ;
2466
2466
if commit. is_empty ( ) {
@@ -2474,7 +2474,7 @@ impl Config {
2474
2474
// Warn if there were changes to the compiler or standard library since the ancestor commit.
2475
2475
let has_changes = !t ! ( helpers:: git( Some ( & self . src) )
2476
2476
. args( [ "diff-index" , "--quiet" , commit, "--" , & compiler, & library] )
2477
- . command
2477
+ . as_command_mut ( )
2478
2478
. status( ) )
2479
2479
. success ( ) ;
2480
2480
if has_changes {
@@ -2547,18 +2547,18 @@ impl Config {
2547
2547
) -> Option < String > {
2548
2548
// Handle running from a directory other than the top level
2549
2549
let top_level = output (
2550
- & mut helpers:: git ( Some ( & self . src ) ) . args ( [ "rev-parse" , "--show-toplevel" ] ) . command ,
2550
+ helpers:: git ( Some ( & self . src ) ) . args ( [ "rev-parse" , "--show-toplevel" ] ) . as_command_mut ( ) ,
2551
2551
) ;
2552
2552
let top_level = top_level. trim_end ( ) ;
2553
2553
2554
2554
// Look for a version to compare to based on the current commit.
2555
2555
// Only commits merged by bors will have CI artifacts.
2556
2556
let merge_base = output (
2557
- & mut helpers:: git ( Some ( & self . src ) )
2557
+ helpers:: git ( Some ( & self . src ) )
2558
2558
. arg ( "rev-list" )
2559
2559
. arg ( format ! ( "--author={}" , self . stage0_metadata. config. git_merge_commit_email) )
2560
2560
. args ( [ "-n1" , "--first-parent" , "HEAD" ] )
2561
- . command ,
2561
+ . as_command_mut ( ) ,
2562
2562
) ;
2563
2563
let commit = merge_base. trim_end ( ) ;
2564
2564
if commit. is_empty ( ) {
@@ -2577,7 +2577,7 @@ impl Config {
2577
2577
git. arg ( format ! ( "{top_level}/{path}" ) ) ;
2578
2578
}
2579
2579
2580
- let has_changes = !t ! ( git. command . status( ) ) . success ( ) ;
2580
+ let has_changes = !t ! ( git. as_command_mut ( ) . status( ) ) . success ( ) ;
2581
2581
if has_changes {
2582
2582
if if_unchanged {
2583
2583
if self . verbose > 0 {
0 commit comments