This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -644,12 +644,16 @@ impl Kind {
644644 }
645645 }
646646
647- pub fn test_description ( & self ) -> & ' static str {
647+ pub fn description ( & self ) -> String {
648648 match self {
649649 Kind :: Test => "Testing" ,
650650 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:?}" ) ,
652655 }
656+ . to_owned ( )
653657 }
654658}
655659
Original file line number Diff line number Diff line change @@ -1020,8 +1020,8 @@ impl Build {
10201020 host : impl Into < Option < TargetSelection > > ,
10211021 target : impl Into < Option < TargetSelection > > ,
10221022 ) -> 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}" ) ;
10251025 let msg = if let Some ( target) = target. into ( ) {
10261026 let host = host. into ( ) . unwrap ( ) ;
10271027 if host == target {
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ impl Step for CrateBootstrap {
101101 ) ;
102102 builder. info ( & format ! (
103103 "{} {} stage0 ({})" ,
104- builder. kind. test_description ( ) ,
104+ builder. kind. description ( ) ,
105105 path,
106106 bootstrap_host,
107107 ) ) ;
You can’t perform that action at this time.
0 commit comments