Skip to content

Add BinaryHeap::pop_if() to manual_pop_if#16734

Merged
samueltardieu merged 1 commit intorust-lang:masterfrom
max-heller:binary-heap-pop-if
Mar 22, 2026
Merged

Add BinaryHeap::pop_if() to manual_pop_if#16734
samueltardieu merged 1 commit intorust-lang:masterfrom
max-heller:binary-heap-pop-if

Conversation

@max-heller
Copy link
Copy Markdown
Contributor

Detects manual implementations of the newly implemented BinaryHeap::pop_if() in manual_pop_if.

I wasn't sure about how best to handle checking for the nightly feature. Could we let people compiling with nightly know that the feature is available even if they don't have it enabled?

changelog: [manual_pop_if]: detect manual implementations of BinaryHeap::pop_if()

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Mar 19, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 19, 2026

r? @Jarcho

rustbot has assigned @Jarcho.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: 7 candidates
  • 7 candidates expanded to 7 candidates
  • Random selection from Jarcho, dswij, llogiq, samueltardieu

@max-heller
Copy link
Copy Markdown
Contributor Author

r? samueltardieu
(since you added this lint recently)

@rustbot rustbot assigned samueltardieu and unassigned Jarcho Mar 19, 2026
Comment thread clippy_lints/src/manual_pop_if.rs Outdated
Comment thread clippy_lints/src/manual_pop_if.rs Outdated
@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties labels Mar 21, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 21, 2026

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@samueltardieu
Copy link
Copy Markdown
Member

I wasn't sure about how best to handle checking for the nightly feature. Could we let people compiling with nightly know that the feature is available even if they don't have it enabled?

We don't usually recommend using features, as it might make the code incompatible with stable releases. Many developers use nightly to get the latest version of the tools but aim at being stable (or lower) compatible.

@max-heller
Copy link
Copy Markdown
Contributor Author

We don't usually recommend using features, as it might make the code incompatible with stable releases. Many developers use nightly to get the latest version of the tools but aim at being stable (or lower) compatible.

Ah yes, of course, that makes sense. It seems like it would be useful to have some sort of feature discovery, maybe an opt-in "things that could be cleanup up by enabling features that are likely-ish to be stabilized" check.

@max-heller
Copy link
Copy Markdown
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties and removed S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) labels Mar 21, 2026
@max-heller max-heller force-pushed the binary-heap-pop-if branch 2 times, most recently from 13eb57b to b8d9b66 Compare March 21, 2026 16:32
Comment thread clippy_lints/src/manual_pop_if.rs Outdated
Comment thread clippy_lints/src/manual_pop_if.rs Outdated
@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties labels Mar 22, 2026
@max-heller
Copy link
Copy Markdown
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties and removed S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) labels Mar 22, 2026
@samueltardieu samueltardieu added this pull request to the merge queue Mar 22, 2026
@samueltardieu
Copy link
Copy Markdown
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants