Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit d790042

Browse files
authored
Unrolled build for rust-lang#115440
Rollup merge of rust-lang#115440 - RalfJung:bootstrap-fmt, r=Mark-Simulacrum bootstrap/format: remove unnecessary paths.push Cc rust-lang#106415 (review) I verified that this still formats all fileds when `get_modified_rs_files` is made to return an error. r? ``@Nilstrieb``
2 parents 3ebb562 + b8e0e79 commit d790042

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/bootstrap/format.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) {
127127
Err(_) => false,
128128
};
129129

130-
let mut paths = paths.to_vec();
131-
132130
if git_available {
133131
let in_working_tree = match build
134132
.config
@@ -201,8 +199,6 @@ pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) {
201199
"WARN: Something went wrong when running git commands:\n{err}\n\
202200
Falling back to formatting all files."
203201
);
204-
// Something went wrong when getting the version. Just format all the files.
205-
paths.push(".".into());
206202
}
207203
}
208204
}

0 commit comments

Comments
 (0)