-
Notifications
You must be signed in to change notification settings - Fork 13.7k
tidy: check that error messages don't start with a capitalized letter #146171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
This comment has been minimized.
This comment has been minimized.
0b8a1dd
to
4d08e6e
Compare
Some changes occurred in compiler/rustc_codegen_ssa |
@rustbot ready |
&mut |ent, contents| { | ||
check_lowercase(ent.path().to_str().unwrap(), contents, bad); | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
q: doesn't this get called for dirs? if so, you should probably add a check for them here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not called on dirs because we filter out dirs right before that:
|path, is_dir| filter_dirs(path) || (!is_dir && filter_fluent(path)),
4d08e6e
to
b152974
Compare
Next step after #146112. The implementation of this is better than the hacks I wrote earlier, which allowed me to discover more capitalized error messages.
@rustbot blocked
r? @WaffleLapkin