Skip to content

Commit afdc8c7

Browse files
committed
stabilize partition_point
1 parent de21cdf commit afdc8c7

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

library/core/src/slice/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -3425,16 +3425,14 @@ impl<T> [T] {
34253425
/// # Examples
34263426
///
34273427
/// ```
3428-
/// #![feature(partition_point)]
3429-
///
34303428
/// let v = [1, 2, 3, 3, 5, 6, 7];
34313429
/// let i = v.partition_point(|&x| x < 5);
34323430
///
34333431
/// assert_eq!(i, 4);
34343432
/// assert!(v[..i].iter().all(|&x| x < 5));
34353433
/// assert!(v[i..].iter().all(|&x| !(x < 5)));
34363434
/// ```
3437-
#[unstable(feature = "partition_point", reason = "new API", issue = "73831")]
3435+
#[stable(feature = "partition_point", since = "1.52.0")]
34383436
pub fn partition_point<P>(&self, mut pred: P) -> usize
34393437
where
34403438
P: FnMut(&T) -> bool,

library/core/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
#![feature(option_result_unwrap_unchecked)]
6868
#![feature(option_unwrap_none)]
6969
#![feature(peekable_peek_mut)]
70-
#![feature(partition_point)]
7170
#![feature(once_cell)]
7271
#![feature(unsafe_block_in_unsafe_fn)]
7372
#![feature(int_bits_const)]

0 commit comments

Comments
 (0)