From f43e3e2023f28d7e7a9f870612c6f2ef867a2acb Mon Sep 17 00:00:00 2001 From: Urgau Date: Sat, 4 May 2024 12:37:30 +0200 Subject: [PATCH] Fix ignored tests for formatting --- rustfmt.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rustfmt.toml b/rustfmt.toml index 67219b15d203d..850d01ea7cb81 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