@@ -1259,7 +1259,7 @@ impl Config {
12591259 cmd. arg ( "rev-parse" ) . arg ( "--show-cdup" ) ;
12601260 // Discard stderr because we expect this to fail when building from a tarball.
12611261 let output = cmd
1262- . command
1262+ . as_command_mut ( )
12631263 . stderr ( std:: process:: Stdio :: null ( ) )
12641264 . output ( )
12651265 . ok ( )
@@ -2142,7 +2142,7 @@ impl Config {
21422142
21432143 let mut git = helpers:: git ( Some ( & self . src ) ) ;
21442144 git. arg ( "show" ) . arg ( format ! ( "{commit}:{}" , file. to_str( ) . unwrap( ) ) ) ;
2145- output ( & mut git. command )
2145+ output ( git. as_command_mut ( ) )
21462146 }
21472147
21482148 /// Bootstrap embeds a version number into the name of shared libraries it uploads in CI.
@@ -2447,7 +2447,7 @@ impl Config {
24472447
24482448 // Handle running from a directory other than the top level
24492449 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 ( ) ,
24512451 ) ;
24522452 let top_level = top_level. trim_end ( ) ;
24532453 let compiler = format ! ( "{top_level}/compiler/" ) ;
@@ -2456,11 +2456,11 @@ impl Config {
24562456 // Look for a version to compare to based on the current commit.
24572457 // Only commits merged by bors will have CI artifacts.
24582458 let merge_base = output (
2459- & mut helpers:: git ( Some ( & self . src ) )
2459+ helpers:: git ( Some ( & self . src ) )
24602460 . arg ( "rev-list" )
24612461 . arg ( format ! ( "--author={}" , self . stage0_metadata. config. git_merge_commit_email) )
24622462 . args ( [ "-n1" , "--first-parent" , "HEAD" ] )
2463- . command ,
2463+ . as_command_mut ( ) ,
24642464 ) ;
24652465 let commit = merge_base. trim_end ( ) ;
24662466 if commit. is_empty ( ) {
@@ -2474,7 +2474,7 @@ impl Config {
24742474 // Warn if there were changes to the compiler or standard library since the ancestor commit.
24752475 let has_changes = !t ! ( helpers:: git( Some ( & self . src) )
24762476 . args( [ "diff-index" , "--quiet" , commit, "--" , & compiler, & library] )
2477- . command
2477+ . as_command_mut ( )
24782478 . status( ) )
24792479 . success ( ) ;
24802480 if has_changes {
@@ -2547,18 +2547,18 @@ impl Config {
25472547 ) -> Option < String > {
25482548 // Handle running from a directory other than the top level
25492549 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 ( ) ,
25512551 ) ;
25522552 let top_level = top_level. trim_end ( ) ;
25532553
25542554 // Look for a version to compare to based on the current commit.
25552555 // Only commits merged by bors will have CI artifacts.
25562556 let merge_base = output (
2557- & mut helpers:: git ( Some ( & self . src ) )
2557+ helpers:: git ( Some ( & self . src ) )
25582558 . arg ( "rev-list" )
25592559 . arg ( format ! ( "--author={}" , self . stage0_metadata. config. git_merge_commit_email) )
25602560 . args ( [ "-n1" , "--first-parent" , "HEAD" ] )
2561- . command ,
2561+ . as_command_mut ( ) ,
25622562 ) ;
25632563 let commit = merge_base. trim_end ( ) ;
25642564 if commit. is_empty ( ) {
@@ -2577,7 +2577,7 @@ impl Config {
25772577 git. arg ( format ! ( "{top_level}/{path}" ) ) ;
25782578 }
25792579
2580- let has_changes = !t ! ( git. command . status( ) ) . success ( ) ;
2580+ let has_changes = !t ! ( git. as_command_mut ( ) . status( ) ) . success ( ) ;
25812581 if has_changes {
25822582 if if_unchanged {
25832583 if self . verbose > 0 {
0 commit comments