Skip to content

Commit 7a009e1

Browse files
authored
Rollup merge of rust-lang#68704 - jonas-schievink:ignore-build-fmt, r=Mark-Simulacrum
Ignore `build` dir formatting I've noticed that rustfmt tries to parse and check the formatting of code in `build` if `.git` is missing (which includes test artifacts and generated code). This should fix that.
2 parents 3f938ae + 08e85aa commit 7a009e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rustfmt.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ merge_derives = false
66
# by default we ignore everything in the repository
77
# tidy only checks files which are not ignored, each entry follows gitignore style
88
ignore = [
9+
"build",
10+
911
# tests for now are not formatted, as they are sometimes pretty-printing constrained
1012
# (and generally rustfmt can move around comments in UI-testing incompatible ways)
1113
"src/test",

0 commit comments

Comments
 (0)