Skip to content

Commit c972a42

Browse files
committed
Stabilize binary_heap_retain
FCP finished in tracking issue: rust-lang#71503
1 parent 6066037 commit c972a42

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
@@ -25,7 +25,6 @@
2525
#![feature(binary_heap_into_iter_sorted)]
2626
#![feature(binary_heap_drain_sorted)]
2727
#![feature(slice_ptr_get)]
28-
#![feature(binary_heap_retain)]
2928
#![feature(binary_heap_as_slice)]
3029
#![feature(inplace_iteration)]
3130
#![feature(iter_advance_by)]

0 commit comments

Comments
 (0)