Skip to content

Commit c5cc78d

Browse files
committed
format
1 parent dc34320 commit c5cc78d

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/bootstrap/src/core/build_steps/tool.rs

+1-5
Original file line numberDiff line numberDiff 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

src/bootstrap/src/core/config/config.rs

+3-2
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)