Auto merge of #109701 - Amanieu:binaryheap_retain, r=ChrisDenton

Stabilize `binary_heap_retain`

FCP finished in tracking issue: #71503
This commit is contained in:
bors 2023-04-02 07:04:01 +00:00
commit 637d7fdb23
2 changed files with 1 additions and 3 deletions

View File

@ -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]);
@ -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,

View File

@ -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)]