mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
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:
@@ -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],
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user