@@ -958,7 +958,7 @@ impl Build {
958958} )
959959}
960960
961- fn run_tracked ( & self , command : BootstrapCommand ) -> CommandOutput {
961+ fn run_tracked ( & self , command : BootstrapCommand < ' _ > ) -> CommandOutput {
962962if self . config . dry_run ( ) {
963963return CommandOutput :: default ( ) ;
964964}
@@ -970,7 +970,7 @@ impl Build {
970970 command. command . status ( ) . map ( |status| status. into ( ) ) ,
971971matches ! ( mode, OutputMode :: PrintAll ) ,
972972) ,
973- OutputMode :: SuppressOnSuccess => ( command. command . output ( ) . map ( |o| o. into ( ) ) , true ) ,
973+ OutputMode :: PrintOnFailure => ( command. command . output ( ) . map ( |o| o. into ( ) ) , true ) ,
974974} ;
975975
976976let output = match output {
@@ -1037,19 +1037,12 @@ impl Build {
10371037) )
10381038}
10391039
1040- /// Runs a command, printing out nice contextual information if it fails.
1041- fn run_quiet ( & self , cmd : & mut Command ) {
1042- self . run_cmd (
1043- BootstrapCommand :: from ( cmd) . fail_fast ( ) . output_mode ( OutputMode :: SuppressOnSuccess ) ,
1044- ) ;
1045- }
1046-
10471040/// Runs a command, printing out nice contextual information if it fails.
10481041/// Exits if the command failed to execute at all, otherwise returns its
10491042/// `status.success()`.
10501043fn run_quiet_delaying_failure ( & self , cmd : & mut Command ) -> bool {
10511044self . run_cmd (
1052- BootstrapCommand :: from ( cmd) . delay_failure ( ) . output_mode ( OutputMode :: SuppressOnSuccess ) ,
1045+ BootstrapCommand :: from ( cmd) . delay_failure ( ) . output_mode ( OutputMode :: PrintOnFailure ) ,
10531046)
10541047}
10551048
@@ -1071,7 +1064,7 @@ impl Build {
10711064} ) ,
10721065matches ! ( mode, OutputMode :: PrintAll ) ,
10731066) ,
1074- OutputMode :: SuppressOnSuccess => ( command. command . output ( ) , true ) ,
1067+ OutputMode :: PrintOnFailure => ( command. command . output ( ) , true ) ,
10751068} ;
10761069
10771070let output = match output {
0 commit comments