Skip to content

Commit 2a01963

Browse files
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
2 parents 8420a08 + dc87b28 commit 2a01963

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tools/tidy/src/ui_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ fn deny_new_nondescriptive_test_names(
302302
&& !stripped_path.starts_with("ui/issues/")
303303
{
304304
check.error(format!(
305-
"file `tests/{stripped_path}` must begin with a descriptive name, consider `{{reason}}-issue-{issue_n}.rs`",
305+
"issue-number-only test names are not descriptive, consider renaming file `tests/{stripped_path}` to `{{reason}}-issue-{issue_n}.rs`",
306306
issue_n = &test_name[1],
307307
));
308308
}

0 commit comments

Comments
 (0)