-
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
Fix FP in indirect needless_collect
when used multiple times
#6313
Conversation
r? @ebroto (rust_highfive has picked a reviewer for you, use r? to override) |
It would be nice if the lint still fired when all usages of the collected item are |
☔ The latest upstream changes (presumably #6325) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels:
|
50f3551
to
0a293bd
Compare
0a293bd
to
8f89108
Compare
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 would be nice if the lint still fired when all usages of the collected item are len or is_empty.
I think we can leave that for a future improvement. For now at least we get rid of the false positive.
@bors r+ Thanks! |
📌 Commit 8f89108 has been approved by |
BTW sorry for the long delay in reviewing, I've been deprived of free time for a while |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
No worries. Thanks for your review! |
Fix #5991
Fix #6297
changelog: Fix FP in indirect
needless_collect
when used multiple times