-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[manual_retain
]: add lint case for binary_heap
#11329
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
Conversation
r? @Alexendoo (rustbot has picked a reviewer for you, use r? to override) |
d1abb75
to
428e60a
Compare
refactor: rename variable chore: reorder test: update naming for msrv
838bd75
to
d5dbee4
Compare
tests/ui/manual_retain.rs
Outdated
#[clippy::msrv = "1.70"] | ||
fn _msrv_170() { | ||
let mut binary_heap = BinaryHeap::from([1, 2, 3]); | ||
binary_heap = binary_heap.into_iter().filter(|x| x % 2 == 0).collect(); | ||
} |
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.
This should be 1.69 to test that it isn't applied when the MSRV is below BinaryHeap::retain
's introduction
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.
Thanks, I updated it at 1eff39d
Thanks! @bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Closes #9059
This PR adds changes to perform linting on the
binary_heap
as well, under the manual_retain rule.changelog: [manual_retain]: update for lint
binary_heap