about summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-06-02 20:51:23 +0200
committerMara Bos <m-ou.se@m-ou.se>2021-06-02 20:55:45 +0200
commitf717992229841e802770ed163c2d6e2a54cc577f (patch)
tree23275caa98b6f93f7deff9dfc12dac2a6e7cfe7c /library/alloc
parentf086f1ec903e1b21ba0ca207c828ceb48f590079 (diff)
downloadrust-f717992229841e802770ed163c2d6e2a54cc577f.tar.gz
rust-f717992229841e802770ed163c2d6e2a54cc577f.zip
Stabilize VecDeque::partition_point.
Diffstat (limited to 'library/alloc')
-rw-r--r--library/alloc/src/collections/vec_deque/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/alloc/src/collections/vec_deque/mod.rs b/library/alloc/src/collections/vec_deque/mod.rs
index c04597b822a..5d03be35e46 100644
--- a/library/alloc/src/collections/vec_deque/mod.rs
+++ b/library/alloc/src/collections/vec_deque/mod.rs
@@ -2570,7 +2570,6 @@ impl<T> VecDeque<T> {
     /// # Examples
     ///
     /// ```
-    /// #![feature(vecdeque_binary_search)]
     /// use std::collections::VecDeque;
     ///
     /// let deque: VecDeque<_> = vec![1, 2, 3, 3, 5, 6, 7].into();
@@ -2580,7 +2579,7 @@ impl<T> VecDeque<T> {
     /// assert!(deque.iter().take(i).all(|&x| x < 5));
     /// assert!(deque.iter().skip(i).all(|&x| !(x < 5)));
     /// ```
-    #[unstable(feature = "vecdeque_binary_search", issue = "78021")]
+    #[stable(feature = "vecdeque_binary_search", since = "1.54.0")]
     pub fn partition_point<P>(&self, mut pred: P) -> usize
     where
         P: FnMut(&T) -> bool,