Skip to content

Commit ad3d9bf

Browse files
Rollup merge of rust-lang#110664 - Ezrashaw:fix-bootstrap-build-format, r=jyn514
stop `x fmt` formatting untracked directories I don't think there's anything else to do? I've confirmed that you get a "skip untracked path foo/ during rustfmt invocations" for the alternative build directory. r? ```@jyn514```
2 parents ddf3932 + e9c52a5 commit ad3d9bf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/bootstrap/format.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,8 @@ pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) {
145145
let untracked_paths = untracked_paths_output
146146
.lines()
147147
.filter(|entry| entry.starts_with("??"))
148-
.filter_map(|entry| {
149-
let path =
150-
entry.split(' ').nth(1).expect("every git status entry should list a path");
151-
path.ends_with(".rs").then_some(path)
148+
.map(|entry| {
149+
entry.split(' ').nth(1).expect("every git status entry should list a path")
152150
});
153151
for untracked_path in untracked_paths {
154152
println!("skip untracked path {} during rustfmt invocations", untracked_path);

0 commit comments

Comments
 (0)