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.
This commit is contained in:
Matthias Krüger 2023-07-30 14:25:10 +02:00 committed by GitHub
commit b9f17f1e78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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