about summary refs log tree commit diff
diff options
context:
space:
mode:
authoryukang <moorekang@gmail.com>2024-02-21 09:58:03 +0800
committeryukang <moorekang@gmail.com>2024-02-21 09:58:03 +0800
commit3da200dc61fb2355672a7a9835fbbc27fc4a2ae4 (patch)
tree341c8c923e3dc25e87223e1456f83252e995ecb7
parent2dc0170233689435f988579a2080f27b02027d21 (diff)
downloadrust-3da200dc61fb2355672a7a9835fbbc27fc4a2ae4.tar.gz
rust-3da200dc61fb2355672a7a9835fbbc27fc4a2ae4.zip
print proper relative path for descriptive name check
-rw-r--r--src/tools/tidy/src/ui_tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tidy/src/ui_tests.rs b/src/tools/tidy/src/ui_tests.rs
index 54a298492d9..920fe16a9fc 100644
--- a/src/tools/tidy/src/ui_tests.rs
+++ b/src/tools/tidy/src/ui_tests.rs
@@ -162,7 +162,7 @@ pub fn check(path: &Path, bless: bool, bad: &mut bool) {
                     if !remaining_issue_names.remove(stripped_path) {
                         tidy_error!(
                             bad,
-                            "file `{stripped_path}` must begin with a descriptive name, consider `{{reason}}-issue-{issue_n}.rs`",
+                            "file `tests/{stripped_path}` must begin with a descriptive name, consider `{{reason}}-issue-{issue_n}.rs`",
                             issue_n = &test_name[1],
                         );
                     }