Skip to content

Commit dcc4424

Browse files
committed
Stabilize partition_in_place
1 parent 603ab5b commit dcc4424

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

library/core/src/iter/traits/iterator.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1739,8 +1739,6 @@ pub trait Iterator {
17391739
/// # Examples
17401740
///
17411741
/// ```
1742-
/// #![feature(iter_partition_in_place)]
1743-
///
17441742
/// let mut a = [1, 2, 3, 4, 5, 6, 7];
17451743
///
17461744
/// // Partition in-place between evens and odds
@@ -1750,7 +1748,7 @@ pub trait Iterator {
17501748
/// assert!(a[..i].iter().all(|&n| n % 2 == 0)); // evens
17511749
/// assert!(a[i..].iter().all(|&n| n % 2 == 1)); // odds
17521750
/// ```
1753-
#[unstable(feature = "iter_partition_in_place", reason = "new API", issue = "62543")]
1751+
#[stable(feature = "iter_partition_in_place", since = "1.48.0")]
17541752
fn partition_in_place<'a, T: 'a, P>(mut self, ref mut predicate: P) -> usize
17551753
where
17561754
Self: Sized + DoubleEndedIterator<Item = &'a mut T>,

library/core/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
#![feature(int_error_matching)]
4444
#![feature(array_value_iter)]
4545
#![feature(iter_advance_by)]
46-
#![feature(iter_partition_in_place)]
4746
#![feature(iter_is_partitioned)]
4847
#![feature(iter_order_by)]
4948
#![feature(cmp_min_max_by)]

0 commit comments

Comments
 (0)