about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-30 22:51:40 +0200
committerGitHub <noreply@github.com>2024-07-30 22:51:40 +0200
commit42a0cc8e71597635b34440b2a7c4bf031a838c85 (patch)
tree2f6c8a18af5a4fb77d189426118c3605667df0a0
parent49327a04a2ceb81dd0ca420cb584d3557a2bd073 (diff)
parentb1b48dc58480cc6c36ba88f842144a8190aa589c (diff)
downloadrust-42a0cc8e71597635b34440b2a7c4bf031a838c85.tar.gz
rust-42a0cc8e71597635b34440b2a7c4bf031a838c85.zip
Rollup merge of #128398 - awilfox:awilfox/fix-tidy-quote, r=jieyouxu
tidy: Fix quote in error message

I noticed that the backticks around the error code wasn't done properly in this string when I was building Rust 1.80.0 and found it is still this way in nightly.  Example:

```
warning: Error code `E0595` needs to have at least one UI test in the `tests/error-codes/` directory`!
warning: Error code E0602`` has a UI test file, but doesn't contain its own error code!
warning: Error code `E0619` needs to have at least one UI test in the `tests/error-codes/` directory`!
```

This commit fixes it to match the other warning strings.
-rw-r--r--src/tools/tidy/src/error_codes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tidy/src/error_codes.rs b/src/tools/tidy/src/error_codes.rs
index 8ddacc07c6f..e2d1b85797f 100644
--- a/src/tools/tidy/src/error_codes.rs
+++ b/src/tools/tidy/src/error_codes.rs
@@ -319,7 +319,7 @@ fn check_error_codes_tests(
         if !found_code {
             verbose_print!(
                 verbose,
-                "warning: Error code {code}`` has a UI test file, but doesn't contain its own error code!"
+                "warning: Error code `{code}` has a UI test file, but doesn't contain its own error code!"
             );
         }
     }