about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-07-30 14:25:10 +0200
committerGitHub <noreply@github.com>2023-07-30 14:25:10 +0200
commitb9f17f1e78cc9d004da6c5488f20e08a5741accf (patch)
tree88f1f98c04fe68c41b53813a9ae566f487eaa1bf
parentde6caffe3aee75acdbfa9c7ba95773743ee8780c (diff)
parent6850a00bd038ad9c45ec1daa9ebe34b6703fc16f (diff)
downloadrust-b9f17f1e78cc9d004da6c5488f20e08a5741accf.tar.gz
rust-b9f17f1e78cc9d004da6c5488f20e08a5741accf.zip
Rollup merge of #114227 - asquared31415:tidy_check_fixed, r=albertlarsan68
Add tidy check for stray rustfix files

`x.fixed` files that don't correspond to a test file now emit a tidy error.
-rw-r--r--src/tools/tidy/src/ui_tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tidy/src/ui_tests.rs b/src/tools/tidy/src/ui_tests.rs
index 6cc7fbcacaf..a1822c83986 100644
--- a/src/tools/tidy/src/ui_tests.rs
+++ b/src/tools/tidy/src/ui_tests.rs
@@ -100,7 +100,7 @@ pub fn check(path: &Path, bad: &mut bool) {
             {
                 tidy_error!(bad, "file {} has unexpected extension {}", file_path.display(), ext);
             }
-            if ext == "stderr" || ext == "stdout" {
+            if ext == "stderr" || ext == "stdout" || ext == "fixed" {
                 // Test output filenames have one of the formats:
                 // ```
                 // $testname.stderr