Skip to content

Commit 637d7fd

Browse files
committed
Auto merge of rust-lang#109701 - Amanieu:binaryheap_retain, r=ChrisDenton
Stabilize `binary_heap_retain` FCP finished in tracking issue: rust-lang#71503
2 parents f5f93d0 + c972a42 commit 637d7fd

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

library/alloc/src/collections/binary_heap/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,6 @@ impl<T: Ord> BinaryHeap<T> {
837837
/// Basic usage:
838838
///
839839
/// ```
840-
/// #![feature(binary_heap_retain)]
841840
/// use std::collections::BinaryHeap;
842841
///
843842
/// let mut heap = BinaryHeap::from([-10, -5, 1, 2, 4, 13]);
@@ -846,7 +845,7 @@ impl<T: Ord> BinaryHeap<T> {
846845
///
847846
/// assert_eq!(heap.into_sorted_vec(), [-10, 2, 4])
848847
/// ```
849-
#[unstable(feature = "binary_heap_retain", issue = "71503")]
848+
#[stable(feature = "binary_heap_retain", since = "CURRENT_RUSTC_VERSION")]
850849
pub fn retain<F>(&mut self, mut f: F)
851850
where
852851
F: FnMut(&T) -> bool,

library/alloc/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#![feature(binary_heap_into_iter_sorted)]
2525
#![feature(binary_heap_drain_sorted)]
2626
#![feature(slice_ptr_get)]
27-
#![feature(binary_heap_retain)]
2827
#![feature(binary_heap_as_slice)]
2928
#![feature(inplace_iteration)]
3029
#![feature(iter_advance_by)]

0 commit comments

Comments
 (0)