-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
make a bunch of lints texts adhere to rustc dev guide #5888
Conversation
r? @yaahc (rust_highfive has picked a reviewer for you, use r? to override) |
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.
🥳
@@ -79,7 +79,7 @@ impl<'tcx> LateLintPass<'tcx> for NoNegCompOpForPartialOrd { | |||
cx, | |||
NEG_CMP_OP_ON_PARTIAL_ORD, | |||
expr.span, | |||
"The use of negated comparison operators on partially ordered \ | |||
"the use of negated comparison operators on partially ordered \ |
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.
this one still has sentences and punctuation but had the initial capitalization removed. I'm not sure which direction to go on this one but we should be consistent.
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.
I was also not sure... The guide says The text should be matter of fact and avoid capitalization and periods, unless multiple sentences are needed
which is why I left it mostly untouched.
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.
Makes sense, it looks like you already applied the change to turn the multiple sentences into 1 longer non sentence. I think it might also be okay to revert it back to the original punctuation / capitalization version. I'll leave it up to you to pick which one you prefer.
Once you've made the decision feel free to r+
for me.
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.
I think converting all multi-sentence warnings into uber-long single-sentence warnings would probably hurt readability too much...
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.
actually, caught a few
Co-authored-by: Jane Lusby <[email protected]>
Co-authored-by: Jane Lusby <[email protected]>
@bors r=yaahc |
📌 Commit 6d0b5e2 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
According to the rustc-dev guide: "The text should be matter of fact and avoid capitalization and periods, unless multiple sentences are needed"
changelog: make some lint output adhere to the rustc-dev guide