-
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
Add format_in_format_args
and to_string_in_format_args
lints
#7743
Conversation
Sorry for the late addition. I added two more test cases. |
I pushed the changes using
Please let me know what other changes are needed. |
☔ The latest upstream changes (presumably #7709) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #7773) made this pull request unmergeable. Please resolve the merge conflicts. |
@camsteffen I apologize for the delay. The |
☔ The latest upstream changes (presumably #7748) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
No problem at all!
Okay, I have another round of feedback. We're definitely getting closer. This may be the most complex macro processing that Clippy has even seen so really great work!
I think I'm ready for the next round of feedback, @camsteffen. Thanks for doing this. |
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 we're nearing the end now. Thanks for sticking with it.
☔ The latest upstream changes (presumably #7806) made this pull request unmergeable. Please resolve the merge conflicts. |
@camsteffen The paths I added to path.rs appear to be the only ones that refer to macros. I am guessing this is why |
@smoelius I'd probably have to debug the invalid_paths lint to figure it out. But the paths should be migrated to diagnostic items anyways so it's kinda not worth the effort. So it's okay to use paths for now and allow the lint on those items with a todo. Or, if you feel inclined, you can add the diagnostic items in rustc and wait for them to be synced in the following Rustup PR. |
OK, that's what I did. I also did some optimistic squashing. But I can undo it if it's a problem. |
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.
Please squash the last commit and this is ready to merge!
Thanks very much for your patience, @camsteffen. |
You bet. Thanks for the PR! @bors r+ |
📌 Commit 75e9f8c has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Fixes #7667 and #7729
I put these in
perf
since that was one of @jplatte's suggestions, andredundant_clone
(which I consider to be similar) lives there as well.However, I am open to changing the category or anything else.
r? @camsteffen
changelog: Add
format_in_format_args
andto_string_in_format_args
lints