Skip to content

Commit 9ab4730

Browse files
authored
Unrolled build for rust-lang#135301
Rollup merge of rust-lang#135301 - lolbinarycat:bootstrap-old-master-resurected, r=onur-ozkan re-add a warning for old master branch, but with much simpler logic instead of calling into git or checking the modification time of files, simply print the warning if there is a very large number of "modified" files. also make the wording much softer, so false positives are less alarming. (warning was removed in rust-lang#134935)
2 parents 7e4077d + 60cbd74 commit 9ab4730

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/bootstrap/src/core/build_steps/format.rs

+3
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ fn print_paths(verb: &str, adjective: Option<&str>, paths: &[String]) {
114114
} else {
115115
println!("fmt: {verb} {len} {adjective}files");
116116
}
117+
if len > 1000 && !CiEnv::is_ci() {
118+
println!("hint: if this number seems too high, try running `git fetch origin master");
119+
}
117120
}
118121

119122
pub fn format(build: &Builder<'_>, check: bool, all: bool, paths: &[PathBuf]) {

0 commit comments

Comments
 (0)