File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -644,12 +644,16 @@ impl Kind {
644
644
}
645
645
}
646
646
647
- pub fn test_description ( & self ) -> & ' static str {
647
+ pub fn description ( & self ) -> String {
648
648
match self {
649
649
Kind :: Test => "Testing" ,
650
650
Kind :: Bench => "Benchmarking" ,
651
- _ => panic ! ( "not a test command: {}!" , self . as_str( ) ) ,
651
+ Kind :: Doc => "Documenting" ,
652
+ Kind :: Run => "Running" ,
653
+ Kind :: Suggest => "Suggesting" ,
654
+ _ => return format ! ( "{self:?}" ) ,
652
655
}
656
+ . to_owned ( )
653
657
}
654
658
}
655
659
Original file line number Diff line number Diff line change @@ -1020,8 +1020,8 @@ impl Build {
1020
1020
host : impl Into < Option < TargetSelection > > ,
1021
1021
target : impl Into < Option < TargetSelection > > ,
1022
1022
) -> Option < gha:: Group > {
1023
- let action = action. into ( ) ;
1024
- let msg = |fmt| format ! ( "{action:?}ing stage{stage} {what}{fmt}" ) ;
1023
+ let action = action. into ( ) . description ( ) ;
1024
+ let msg = |fmt| format ! ( "{action} stage{stage} {what}{fmt}" ) ;
1025
1025
let msg = if let Some ( target) = target. into ( ) {
1026
1026
let host = host. into ( ) . unwrap ( ) ;
1027
1027
if host == target {
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ impl Step for CrateBootstrap {
101
101
) ;
102
102
builder. info ( & format ! (
103
103
"{} {} stage0 ({})" ,
104
- builder. kind. test_description ( ) ,
104
+ builder. kind. description ( ) ,
105
105
path,
106
106
bootstrap_host,
107
107
) ) ;
You can’t perform that action at this time.
0 commit comments