@@ -958,7 +958,7 @@ impl Build {
958
958
} )
959
959
}
960
960
961
- fn run_tracked ( & self , command : BootstrapCommand ) -> CommandOutput {
961
+ fn run_tracked ( & self , command : BootstrapCommand < ' _ > ) -> CommandOutput {
962
962
if self . config . dry_run ( ) {
963
963
return CommandOutput :: default ( ) ;
964
964
}
@@ -970,7 +970,7 @@ impl Build {
970
970
command. command . status ( ) . map ( |status| status. into ( ) ) ,
971
971
matches ! ( mode, OutputMode :: PrintAll ) ,
972
972
) ,
973
- OutputMode :: SuppressOnSuccess => ( command. command . output ( ) . map ( |o| o. into ( ) ) , true ) ,
973
+ OutputMode :: PrintOnFailure => ( command. command . output ( ) . map ( |o| o. into ( ) ) , true ) ,
974
974
} ;
975
975
976
976
let output = match output {
@@ -1037,19 +1037,12 @@ impl Build {
1037
1037
) )
1038
1038
}
1039
1039
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
-
1047
1040
/// Runs a command, printing out nice contextual information if it fails.
1048
1041
/// Exits if the command failed to execute at all, otherwise returns its
1049
1042
/// `status.success()`.
1050
1043
fn run_quiet_delaying_failure ( & self , cmd : & mut Command ) -> bool {
1051
1044
self . run_cmd (
1052
- BootstrapCommand :: from ( cmd) . delay_failure ( ) . output_mode ( OutputMode :: SuppressOnSuccess ) ,
1045
+ BootstrapCommand :: from ( cmd) . delay_failure ( ) . output_mode ( OutputMode :: PrintOnFailure ) ,
1053
1046
)
1054
1047
}
1055
1048
@@ -1071,7 +1064,7 @@ impl Build {
1071
1064
} ) ,
1072
1065
matches ! ( mode, OutputMode :: PrintAll ) ,
1073
1066
) ,
1074
- OutputMode :: SuppressOnSuccess => ( command. command . output ( ) , true ) ,
1067
+ OutputMode :: PrintOnFailure => ( command. command . output ( ) , true ) ,
1075
1068
} ;
1076
1069
1077
1070
let output = match output {
0 commit comments