chore: clearify tidy's error message#152202
Open
nyurik wants to merge 3 commits intorust-lang:mainfrom
Open
Conversation
Collaborator
|
r? @Zalathar rustbot has assigned @Zalathar. Use Why was this reviewer chosen?The reviewer was selected based on:
|
src/tools/tidy/src/ui_tests.rs
Outdated
| { | ||
| check.error(format!( | ||
| "file `tests/{stripped_path}` must begin with a descriptive name, consider `{{reason}}-issue-{issue_n}.rs`", | ||
| "the name of the file `tests/{stripped_path}` must begin with a descriptive prefix, consider `{{reason}}-issue-{issue_n}.rs`", |
Member
There was a problem hiding this comment.
"prefix" is misleading as it is not essential that it includes issue-{NN} as part of the filename and thus there is no "prefix" if it's the entire thing.
Contributor
Author
There was a problem hiding this comment.
what do you think would be a good error here?
Member
There was a problem hiding this comment.
Mm. If I had my druthers, it would be "test filenames should be descriptive instead of context-free integers", but that's probably too snarky.
jieyouxu
reviewed
Feb 6, 2026
Member
|
r? me @bors r+ rollup |
Contributor
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Feb 6, 2026
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
it took me a while to realize this error was due to the name of the file, not the file's content