Skip to content

Commit

Permalink
Auto merge of rust-lang#109701 - Amanieu:binaryheap_retain, r=ChrisDe…
Browse files Browse the repository at this point in the history
…nton

Stabilize `binary_heap_retain`

FCP finished in tracking issue: rust-lang#71503
  • Loading branch information
bors committed Apr 2, 2023
2 parents f5f93d0 + c972a42 commit 637d7fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions library/alloc/src/collections/binary_heap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,6 @@ impl<T: Ord> BinaryHeap<T> {
/// Basic usage:
///
/// ```
/// #![feature(binary_heap_retain)]
/// use std::collections::BinaryHeap;
///
/// let mut heap = BinaryHeap::from([-10, -5, 1, 2, 4, 13]);
Expand All @@ -846,7 +845,7 @@ impl<T: Ord> BinaryHeap<T> {
///
/// assert_eq!(heap.into_sorted_vec(), [-10, 2, 4])
/// ```
#[unstable(feature = "binary_heap_retain", issue = "71503")]
#[stable(feature = "binary_heap_retain", since = "CURRENT_RUSTC_VERSION")]
pub fn retain<F>(&mut self, mut f: F)
where
F: FnMut(&T) -> bool,
Expand Down
1 change: 0 additions & 1 deletion library/alloc/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#![feature(binary_heap_into_iter_sorted)]
#![feature(binary_heap_drain_sorted)]
#![feature(slice_ptr_get)]
#![feature(binary_heap_retain)]
#![feature(binary_heap_as_slice)]
#![feature(inplace_iteration)]
#![feature(iter_advance_by)]
Expand Down

0 comments on commit 637d7fd

Please sign in to comment.