@@ -275,7 +275,7 @@ impl Step for Link {
275
275
}
276
276
277
277
fn 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 ( )
279
279
}
280
280
281
281
fn stage_dir_exists ( stage_path : & str ) -> bool {
@@ -313,9 +313,10 @@ fn attempt_toolchain_link(builder: &Builder<'_>, stage_path: &str) {
313
313
314
314
fn toolchain_is_linked ( builder : & Builder < ' _ > ) -> bool {
315
315
match command ( "rustup" )
316
+ . capture_stdout ( )
316
317
. allow_failure ( )
317
318
. args ( [ "toolchain" , "list" ] )
318
- . run_capture_stdout ( builder)
319
+ . run ( builder)
319
320
. stdout_if_ok ( )
320
321
{
321
322
Some ( toolchain_list) => {
@@ -340,8 +341,9 @@ fn toolchain_is_linked(builder: &Builder<'_>) -> bool {
340
341
341
342
fn try_link_toolchain ( builder : & Builder < ' _ > , stage_path : & str ) -> bool {
342
343
command ( "rustup" )
344
+ . capture_stdout ( )
343
345
. args ( [ "toolchain" , "link" , "stage1" , stage_path] )
344
- . run_capture_stdout ( builder)
346
+ . run ( builder)
345
347
. is_success ( )
346
348
}
347
349
@@ -479,8 +481,9 @@ impl Step for Hook {
479
481
// install a git hook to automatically run tidy, if they want
480
482
fn install_git_hook_maybe ( builder : & Builder < ' _ > , config : & Config ) -> io:: Result < ( ) > {
481
483
let git = helpers:: git ( Some ( & config. src ) )
484
+ . capture ( )
482
485
. args ( [ "rev-parse" , "--git-common-dir" ] )
483
- . run_capture ( builder)
486
+ . run ( builder)
484
487
. stdout ( ) ;
485
488
let git = PathBuf :: from ( git. trim ( ) ) ;
486
489
let hooks_dir = git. join ( "hooks" ) ;
0 commit comments