Skip to content

Commit f717992

Browse files
committed
Stabilize VecDeque::partition_point.
1 parent f086f1e commit f717992

File tree

1 file changed

+1
-2
lines changed
  • library/alloc/src/collections/vec_deque

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -2570,7 +2570,6 @@ impl<T> VecDeque<T> {
25702570
/// # Examples
25712571
///
25722572
/// ```
2573-
/// #![feature(vecdeque_binary_search)]
25742573
/// use std::collections::VecDeque;
25752574
///
25762575
/// let deque: VecDeque<_> = vec![1, 2, 3, 3, 5, 6, 7].into();
@@ -2580,7 +2579,7 @@ impl<T> VecDeque<T> {
25802579
/// assert!(deque.iter().take(i).all(|&x| x < 5));
25812580
/// assert!(deque.iter().skip(i).all(|&x| !(x < 5)));
25822581
/// ```
2583-
#[unstable(feature = "vecdeque_binary_search", issue = "78021")]
2582+
#[stable(feature = "vecdeque_binary_search", since = "1.54.0")]
25842583
pub fn partition_point<P>(&self, mut pred: P) -> usize
25852584
where
25862585
P: FnMut(&T) -> bool,

0 commit comments

Comments
 (0)