Rollup merge of #152202 - nyurik:better-msg, r=jieyouxu

chore: clearify tidy's error message

it took me a while to realize this error was due to the name of the file, not the file's content
This commit is contained in:
Jonathan Brouwer
2026-02-06 10:06:48 +01:00
committed by GitHub
+1 -1
View File
@@ -302,7 +302,7 @@ fn deny_new_nondescriptive_test_names(
&& !stripped_path.starts_with("ui/issues/")
{
check.error(format!(
"file `tests/{stripped_path}` must begin with a descriptive name, consider `{{reason}}-issue-{issue_n}.rs`",
"issue-number-only test names are not descriptive, consider renaming file `tests/{stripped_path}` to `{{reason}}-issue-{issue_n}.rs`",
issue_n = &test_name[1],
));
}