Bump vecdeque_binary_search stabilization to 1.54.

This commit is contained in:
Mara Bos 2021-06-02 20:51:08 +02:00
parent f51f277d6c
commit f086f1ec90

View File

@ -2439,7 +2439,7 @@ unsafe fn rotate_right_inner(&mut self, k: usize) {
/// 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.53.0")]
#[stable(feature = "vecdeque_binary_search", since = "1.54.0")]
#[inline]
pub fn binary_search(&self, x: &T) -> Result<usize, usize>
where
@ -2484,7 +2484,7 @@ pub fn binary_search(&self, x: &T) -> Result<usize, usize>
/// let r = deque.binary_search_by(|x| x.cmp(&1));
/// assert!(matches!(r, Ok(1..=4)));
/// ```
#[stable(feature = "vecdeque_binary_search", since = "1.53.0")]
#[stable(feature = "vecdeque_binary_search", since = "1.54.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 @@ pub fn binary_search_by<'a, F>(&'a self, mut f: F) -> Result<usize, usize>
/// let r = deque.binary_search_by_key(&1, |&(a, b)| b);
/// assert!(matches!(r, Ok(1..=4)));
/// ```
#[stable(feature = "vecdeque_binary_search", since = "1.53.0")]
#[stable(feature = "vecdeque_binary_search", since = "1.54.0")]
#[inline]
pub fn binary_search_by_key<'a, B, F>(&'a self, b: &B, mut f: F) -> Result<usize, usize>
where