Skip to content
/ rust Public
forked from rust-lang/rust

Commit 8c3e9d7

Browse files
authored
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 351e618 + 60cbd74 commit 8c3e9d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/src/core/build_steps/format.rs

Lines changed: 3 additions & 0 deletions
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)