@@ -275,7 +275,7 @@ impl Step for Link {
275275}
276276
277277fn rustup_installed ( builder : & Builder < ' _ > ) -> bool {
278- command ( "rustup" ) . arg ( "--version" ) . run_capture_stdout ( builder) . is_success ( )
278+ command ( "rustup" ) . capture_stdout ( ) . arg ( "--version" ) . run ( builder) . is_success ( )
279279}
280280
281281fn stage_dir_exists ( stage_path : & str ) -> bool {
@@ -313,9 +313,10 @@ fn attempt_toolchain_link(builder: &Builder<'_>, stage_path: &str) {
313313
314314fn toolchain_is_linked ( builder : & Builder < ' _ > ) -> bool {
315315 match command ( "rustup" )
316+ . capture_stdout ( )
316317 . allow_failure ( )
317318 . args ( [ "toolchain" , "list" ] )
318- . run_capture_stdout ( builder)
319+ . run ( builder)
319320 . stdout_if_ok ( )
320321 {
321322 Some ( toolchain_list) => {
@@ -340,8 +341,9 @@ fn toolchain_is_linked(builder: &Builder<'_>) -> bool {
340341
341342fn try_link_toolchain ( builder : & Builder < ' _ > , stage_path : & str ) -> bool {
342343 command ( "rustup" )
344+ . capture_stdout ( )
343345 . args ( [ "toolchain" , "link" , "stage1" , stage_path] )
344- . run_capture_stdout ( builder)
346+ . run ( builder)
345347 . is_success ( )
346348}
347349
@@ -479,8 +481,9 @@ impl Step for Hook {
479481// install a git hook to automatically run tidy, if they want
480482fn install_git_hook_maybe ( builder : & Builder < ' _ > , config : & Config ) -> io:: Result < ( ) > {
481483 let git = helpers:: git ( Some ( & config. src ) )
484+ . capture ( )
482485 . args ( [ "rev-parse" , "--git-common-dir" ] )
483- . run_capture ( builder)
486+ . run ( builder)
484487 . stdout ( ) ;
485488 let git = PathBuf :: from ( git. trim ( ) ) ;
486489 let hooks_dir = git. join ( "hooks" ) ;
0 commit comments