mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-03 17:35:28 +03:00
Auto merge of #109701 - Amanieu:binaryheap_retain, r=ChrisDenton
Stabilize `binary_heap_retain` FCP finished in tracking issue: #71503
This commit is contained in:
@@ -837,7 +837,6 @@ pub fn drain_sorted(&mut self) -> DrainSorted<'_, 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 @@ pub fn drain_sorted(&mut self) -> DrainSorted<'_, 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,
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user