File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -594,12 +594,8 @@ impl Step for Rustdoc {
594594 && target_compiler. stage > 0
595595 && builder. rust_info ( ) . is_managed_git_subrepository ( )
596596 {
597+ let files_to_track = & [ "src/librustdoc" , "src/tools/rustdoc" ] ;
597598
598- let files_to_track = & [
599- "src/librustdoc" ,
600- "src/tools/rustdoc" ,
601- ] ;
602-
603599 if builder. config . last_modified_commit ( files_to_track, "rustdoc" , true ) . is_some ( ) {
604600 // if return Some(commit),means unchanged
605601 let precompiled_rustdoc = builder
Original file line number Diff line number Diff line change @@ -2759,10 +2759,11 @@ impl Config {
27592759
27602760 // Look for a version to compare to based on the current commit.
27612761 // Only commits merged by bors will have CI artifacts.
2762- let commit = match self . last_modified_commit ( files_to_track, "download-rustc" , if_unchanged) {
2762+ let commit = match self . last_modified_commit ( files_to_track, "download-rustc" , if_unchanged)
2763+ {
27632764 Some ( commit) => commit,
27642765 None => {
2765- if if_unchanged{
2766+ if if_unchanged {
27662767 return None ;
27672768 }
27682769 println ! ( "ERROR: could not find commit hash for downloading rustc" ) ;
You can’t perform that action at this time.
0 commit comments