File tree 2 files changed +4
-7
lines changed
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 {
594
594
&& target_compiler. stage > 0
595
595
&& builder. rust_info ( ) . is_managed_git_subrepository ( )
596
596
{
597
+ let files_to_track = & [ "src/librustdoc" , "src/tools/rustdoc" ] ;
597
598
598
- let files_to_track = & [
599
- "src/librustdoc" ,
600
- "src/tools/rustdoc" ,
601
- ] ;
602
-
603
599
if builder. config . last_modified_commit ( files_to_track, "rustdoc" , true ) . is_some ( ) {
604
600
// if return Some(commit),means unchanged
605
601
let precompiled_rustdoc = builder
Original file line number Diff line number Diff line change @@ -2759,10 +2759,11 @@ impl Config {
2759
2759
2760
2760
// Look for a version to compare to based on the current commit.
2761
2761
// 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
+ {
2763
2764
Some ( commit) => commit,
2764
2765
None => {
2765
- if if_unchanged{
2766
+ if if_unchanged {
2766
2767
return None ;
2767
2768
}
2768
2769
println ! ( "ERROR: could not find commit hash for downloading rustc" ) ;
You can’t perform that action at this time.
0 commit comments