manual_pop_if: lint more cases, even if we do not provide a suggestion#16683
manual_pop_if: lint more cases, even if we do not provide a suggestion#16683pbor wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
r? @Jarcho rustbot has assigned @Jarcho. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Reminder, once the PR becomes ready for a review, use |
In that case, |
Extend the lint to detect the case where the popped value is used, but in such cases just emit the lint with no suggestion. changelog: none
cbb440a to
06f5f41
Compare
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Thanks for the review and suggestions, PR updated. |
|
@rustbot ready |
|
Hm, it didn't come out as nice as I'd imagined – it's a bit too verbose. Let me play around with it locally and get back to you when I find something nicer |
|
Hm, nevermind, I think the original version was the best after all. Could you please revert to that?^^ |
Extend the lint to detect the case where the popped value is used, but in such cases just emit the lint with no suggestion.
changelog: none