-
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
Refactor format_args!
expansion parsing
#7442
Conversation
r? @xFrednet Can you take over this review please? (rust-highfive was down, so I'll give the 2 unassigned PRs to you) |
Sure, I'm happy to take them over! 🙃 |
^^ thank you! I believe that @flip1995 would also like to stay assigned to double-check my review later. 🙃 |
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.
Hey, awesome work, it took some time digging though it all but the result is worth it. Thank you for the nice refactoring!
clippy_lints/src/explicit_write.rs
still contains some lint messages with punctuation and a suggestion in the main message (lines 111ff). Could you update the lint emission to display the help message using span_lint_and_help
while you're in the area?
Thanks for the thorough review @xFrednet. I addressed your comments. |
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.
Awesome, this looks good to me 👍
Hey @flip1995, I'm done with my review and would hand this over to you now. If you weren't taking over, I would ask @camsteffen
to squash his fixup commits before merging it. 🙃
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.
@xFrednet Thanks for doing the review!
@camsteffen please squash the fixup commits and then r=xFrednet 👍
@bors r=xFrednet |
📌 Commit 306f9e8 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Introduces
FormatExpn::parse
andFormatArgsExpn::parse
. Motivated by rust-lang/rust#83302, so I only have to change Clippy in one place. Fixed an FP along the way.I also allowed
needless_bool
in macros because I often want to doif_chain! { .. then { true } else { false } }
.changelog: Fix false positive in
useless_format
when some text is appended or prepended to a single string with some useless formatting paramschangelog: Allow
needless_bool
in macros