-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Move collection_is_never_read
from nursery
to suspicious
#11591
Move collection_is_never_read
from nursery
to suspicious
#11591
Conversation
r? @dswij (rustbot has picked a reviewer for you, use r? to override) |
Needs more work. Closing this for now, apologies. |
Many of the tests for other lints are failing because those tests create a collection, add some stuff to it, and then don't do anything with it. So these are true positives, but obviously irrelevant because these tests are not complete and meaningful programs. Is there a recommended way to deal with this in bulk or should I update all these tests and allow |
Just allow the lint in any test where needed. |
OK. That'll take a while. |
collection_is_never_read
to suspicious
collection_is_never_read
from nursery
to suspicious
There are merge commits (commits with multiple parents) in your changes. We have a no merge policy so these commits will need to be removed for this pull request to be merged. You can start a rebase with the following commands:
The following commits are merge commits: |
8f547a0
to
0e43a04
Compare
I've put The PR is ready now. |
☔ The latest upstream changes (presumably #11596) made this pull request unmergeable. Please resolve the merge conflicts. |
c530d32
to
cbf6b7e
Compare
Merge conflicts resolved, tests passed. |
Thanks for the PR! (and I think moving to |
Before moving this to |
Reports
Stats:
Results on the top 400 most popular crates. EDIT: the |
I think in a case like this, suppressing the lint would be appropriate. |
☔ The latest upstream changes (presumably #12030) made this pull request unmergeable. Please resolve the merge conflicts. |
Yes, I think the concerns raised here and on Zulip can be addressed, but I don't have time to work on this at the moment. I've already reverted this PR to "draft" but I can close it entirely for the time being, if that helps. |
Okay, I'm trying to organize our old PRs a bit and mark things as inactive in case someone else is interested in completing a PR. So, I'll close this for now. When you have the time again, we would love to have you back. You can just create a new PR :D. Thank you for the time, you already put into this! @rustbot label +S-inactive-closed -S-waiting-on-author -S-waiting-on-review |
This seems like a useful lint. I have not heard about any false positives. Let's make it more widely available.
changelog: Moved [
collection_is_never_read
] tosuspicious