diff options
| author | SOFe <sofe2038@gmail.com> | 2021-03-22 10:58:06 +0800 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2021-06-02 20:50:22 +0200 |
| commit | f51f277d6c008d56cc9bb0576bf5ebca60070208 (patch) | |
| tree | 2460bcea78b816c02ed0383e321ecc5660110640 | |
| parent | f7c283c160c7fb0c0f5ff9202fb66564e228daef (diff) | |
| download | rust-f51f277d6c008d56cc9bb0576bf5ebca60070208.tar.gz rust-f51f277d6c008d56cc9bb0576bf5ebca60070208.zip | |
Bumped `vecdeque_binary_search` stabilization version to 1.53.0
| -rw-r--r-- | library/alloc/src/collections/vec_deque/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/alloc/src/collections/vec_deque/mod.rs b/library/alloc/src/collections/vec_deque/mod.rs index 28178bc6cb7..910c4269913 100644 --- a/library/alloc/src/collections/vec_deque/mod.rs +++ b/library/alloc/src/collections/vec_deque/mod.rs @@ -2439,7 +2439,7 @@ impl<T> VecDeque<T> { /// deque.insert(idx, num); /// assert_eq!(deque, &[0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 42, 55]); /// ``` - #[stable(feature = "vecdeque_binary_search", since = "1.52.0")] + #[stable(feature = "vecdeque_binary_search", since = "1.53.0")] #[inline] pub fn binary_search(&self, x: &T) -> Result<usize, usize> where @@ -2484,7 +2484,7 @@ impl<T> VecDeque<T> { /// let r = deque.binary_search_by(|x| x.cmp(&1)); /// assert!(matches!(r, Ok(1..=4))); /// ``` - #[stable(feature = "vecdeque_binary_search", since = "1.52.0")] + #[stable(feature = "vecdeque_binary_search", since = "1.53.0")] pub fn binary_search_by<'a, F>(&'a self, mut f: F) -> Result<usize, usize> where F: FnMut(&'a T) -> Ordering, @@ -2539,7 +2539,7 @@ impl<T> VecDeque<T> { /// let r = deque.binary_search_by_key(&1, |&(a, b)| b); /// assert!(matches!(r, Ok(1..=4))); /// ``` - #[stable(feature = "vecdeque_binary_search", since = "1.52.0")] + #[stable(feature = "vecdeque_binary_search", since = "1.53.0")] #[inline] pub fn binary_search_by_key<'a, B, F>(&'a self, b: &B, mut f: F) -> Result<usize, usize> where |
