about summary refs log tree commit diff
path: root/rustfmt.toml
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2024-05-04 12:37:30 +0200
committerUrgau <urgau@numericable.fr>2024-05-04 12:37:30 +0200
commitf43e3e2023f28d7e7a9f870612c6f2ef867a2acb (patch)
tree5b629662ba44540a5a1ee6ed42ecc370531e5eb0 /rustfmt.toml
parentd6d3b342e85272f5e75c0d7a1dd3a1d8becb40ac (diff)
downloadrust-f43e3e2023f28d7e7a9f870612c6f2ef867a2acb.tar.gz
rust-f43e3e2023f28d7e7a9f870612c6f2ef867a2acb.zip
Fix ignored tests for formatting
Diffstat (limited to 'rustfmt.toml')
-rw-r--r--rustfmt.toml6
1 files changed, 6 insertions, 0 deletions
diff --git a/rustfmt.toml b/rustfmt.toml
index 67219b15d20..850d01ea7cb 100644
--- a/rustfmt.toml
+++ b/rustfmt.toml
@@ -13,6 +13,12 @@ ignore = [
 
     # 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/*",
+
+    # but we still want to format rmake.rs files in tests/run-make/ so we need to do this
+    # dance to avoid the parent directory from being excluded
+    "!/tests/run-make/",
+    "/tests/run-make/*/*.rs",
     "!/tests/run-make/*/rmake.rs",
 
     # do not format submodules