Skip to content

Commit 582ae3a

Browse files
authored
Rollup merge of rust-lang#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.
2 parents ec36902 + b1b48dc commit 582ae3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/tidy/src/error_codes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ fn check_error_codes_tests(
319319
if !found_code {
320320
verbose_print!(
321321
verbose,
322-
"warning: Error code {code}`` has a UI test file, but doesn't contain its own error code!"
322+
"warning: Error code `{code}` has a UI test file, but doesn't contain its own error code!"
323323
);
324324
}
325325
}

0 commit comments

Comments
 (0)