List all tests/ subdirs explicitly in rustfmt.toml.

So we can gradually remove the ones where rustfmt can be used.
This commit is contained in:
Nicholas Nethercote 2024-05-29 13:49:23 +10:00
parent caa187f3bc
commit 4af4ba2391

View File

@ -10,9 +10,32 @@ ignore = [
"/build-*/",
"/vendor/",
# Tests for now are not formatted, as they are sometimes pretty-printing constrained
# (and generally rustfmt can move around comments in UI-testing incompatible ways).
"/tests/",
# Some tests are not formatted, for multiple reasons:
# - some contain syntax errors that cause rustfmt to give an error
# - some UI tests are broken by different formatting
# - some require special comments in a particular position (e.g. `EMIT_MIR` comments)
"/tests/assembly/",
"/tests/auxiliary/",
"/tests/codegen/",
"/tests/codegen-units/",
"/tests/coverage/",
"/tests/coverage-run-rustdoc/",
"/tests/crashes/",
"/tests/debuginfo/",
"/tests/incremental/",
"/tests/mir-opt/",
"/tests/pretty/",
"/tests/run-make/",
"/tests/run-make-fulldeps/",
"/tests/run-pass-valgrind/",
"/tests/rustdoc/",
"/tests/rustdoc-gui/",
"/tests/rustdoc-js/",
"/tests/rustdoc-json/",
"/tests/rustdoc-js-std/",
"/tests/rustdoc-ui/",
"/tests/ui/",
"/tests/ui-fulldeps/",
# Do not format submodules.
# FIXME: sync submodule list with tidy/bootstrap/etc