File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ pub fn crate_description(crates: &[impl AsRef<str>]) -> String {
291291 return "" . into ( ) ;
292292 }
293293
294- let mut descr = String :: from ( " {" ) ;
294+ let mut descr = String :: from ( "{" ) ;
295295 descr. push_str ( crates[ 0 ] . as_ref ( ) ) ;
296296 for krate in & crates[ 1 ..] {
297297 descr. push_str ( ", " ) ;
Original file line number Diff line number Diff line change @@ -1801,9 +1801,10 @@ mod snapshot {
18011801 [test] CoverageRunRustdoc <host>
18021802 [test] Pretty <host>
18031803 [build] rustc 1 <host> -> std 1 <host>
1804+ [build] rustc 0 <host> -> std 0 <host>
1805+ [build] rustdoc 0 <host>
18041806 [test] CrateLibrustc <host>
18051807 [build] rustc 1 <host> -> rustc 2 <host>
1806- [build] rustdoc 0 <host>
18071808 [test] crate-bootstrap <host> src/tools/coverage-dump
18081809 [test] crate-bootstrap <host> src/tools/jsondoclint
18091810 [test] crate-bootstrap <host> src/tools/replace-version-placeholder
@@ -1838,7 +1839,7 @@ mod snapshot {
18381839 [doc] rustc (book) <host>
18391840 [test] rustc 1 <host> -> lint-docs 2 <host>
18401841 [doc] rustc 1 <host> -> std 1 <host> crates=[]
1841- [test] rustc 1 <host> -> rustdoc-js-std 2 <host>
1842+ [test] rustdoc-js-std 1 <host>
18421843 [build] rustc 0 <host> -> RustdocTheme 1 <host>
18431844 [test] rustdoc-theme 1 <host>
18441845 [test] RustdocUi <host>
Original file line number Diff line number Diff line change @@ -1130,14 +1130,18 @@ impl Build {
11301130 } ;
11311131
11321132 let action = action. into ( ) . description ( ) ;
1133- let msg = |fmt| format ! ( "{action} stage{actual_stage} {what}{fmt}" ) ;
1133+ let what = what. to_string ( ) ;
1134+ let msg = |fmt| {
1135+ let space = if !what. is_empty ( ) { " " } else { "" } ;
1136+ format ! ( "{action} stage{actual_stage} {what}{space}{fmt}" )
1137+ } ;
11341138 let msg = if let Some ( target) = target. into ( ) {
11351139 let build_stage = host_and_stage. stage ;
11361140 let host = host_and_stage. host ;
11371141 if host == target {
1138- msg ( format_args ! ( " (stage{build_stage} -> stage{actual_stage}, {target})" ) )
1142+ msg ( format_args ! ( "(stage{build_stage} -> stage{actual_stage}, {target})" ) )
11391143 } else {
1140- msg ( format_args ! ( " (stage{build_stage}:{host} -> stage{actual_stage}:{target})" ) )
1144+ msg ( format_args ! ( "(stage{build_stage}:{host} -> stage{actual_stage}:{target})" ) )
11411145 }
11421146 } else {
11431147 msg ( format_args ! ( "" ) )
You can’t perform that action at this time.
0 commit comments