Skip to content

Commit

Permalink
Unrolled build for rust-lang#128398
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rust-timer authored Jul 31, 2024
2 parents f8060d2 + b1b48dc commit 89c2396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/tidy/src/error_codes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
);
}
}
Expand Down

0 comments on commit 89c2396

Please sign in to comment.