-
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
New Lint: needless_for_each #6706
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @flip1995 (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
0cbec62
to
7acb8f8
Compare
Changes:
|
Changes:
|
I'm a little iffy on the |
Yes, I think so too... if |
☔ The latest upstream changes (presumably #6695) made this pull request unmergeable. Please resolve the merge conflicts. |
I completely agree. Requiring adding a label is likely bad style, and I've seen compiler code introducing a closure that is directly called to avoid labels. |
8f50346
to
ffcd033
Compare
Changes:
|
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.
impl LGTM, but code duplication can be reduced.
Changes:
|
Changes: Add comments to clarify why |
@rustbot label -S-waiting-on-author +S-waiting-on-review |
☔ The latest upstream changes (presumably #6730) made this pull request unmergeable. Please resolve the merge conflicts. |
3bdbe72
to
dbadac7
Compare
Changes:
|
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.
Filling in for @flip1995 with a review!
Need to remove the empty file clippy_lints/src/iter_for_each.rs
.
@camsteffen Thanks for your review! Reviewed points make perfect sense to me, I'll fix them. |
ping from triage @flip1995 @camsteffen. Can we need to review this further? |
Thanks! I didn't follow this PR, so I just @bors r=camsteffen Skimming over it, I couldn't find any obvious flaws, so I trust your review. |
📌 Commit 0e42112 has been approved by |
New Lint: needless_for_each resolves: #6543 changelog: Added pedantic lint: `needless_for_each`
💔 Test failed - checks-action_test |
The CI failures are because |
0e42112
to
e61f978
Compare
Fixed! |
@bors r=camsteffen Thanks! |
📌 Commit e61f978 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
resolves: #6543
changelog: Added pedantic lint:
needless_for_each