Skip to content

Commit 4af4ba2

Browse files
committed
List all tests/ subdirs explicitly in rustfmt.toml.
So we can gradually remove the ones where rustfmt can be used.
1 parent caa187f commit 4af4ba2

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

rustfmt.toml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,32 @@ ignore = [
1010
"/build-*/",
1111
"/vendor/",
1212

13-
# Tests for now are not formatted, as they are sometimes pretty-printing constrained
14-
# (and generally rustfmt can move around comments in UI-testing incompatible ways).
15-
"/tests/",
13+
# Some tests are not formatted, for multiple reasons:
14+
# - some contain syntax errors that cause rustfmt to give an error
15+
# - some UI tests are broken by different formatting
16+
# - some require special comments in a particular position (e.g. `EMIT_MIR` comments)
17+
"/tests/assembly/",
18+
"/tests/auxiliary/",
19+
"/tests/codegen/",
20+
"/tests/codegen-units/",
21+
"/tests/coverage/",
22+
"/tests/coverage-run-rustdoc/",
23+
"/tests/crashes/",
24+
"/tests/debuginfo/",
25+
"/tests/incremental/",
26+
"/tests/mir-opt/",
27+
"/tests/pretty/",
28+
"/tests/run-make/",
29+
"/tests/run-make-fulldeps/",
30+
"/tests/run-pass-valgrind/",
31+
"/tests/rustdoc/",
32+
"/tests/rustdoc-gui/",
33+
"/tests/rustdoc-js/",
34+
"/tests/rustdoc-json/",
35+
"/tests/rustdoc-js-std/",
36+
"/tests/rustdoc-ui/",
37+
"/tests/ui/",
38+
"/tests/ui-fulldeps/",
1639

1740
# Do not format submodules.
1841
# FIXME: sync submodule list with tidy/bootstrap/etc

0 commit comments

Comments
 (0)