Rollup merge of #80448 - m-ou-se:deque-range-version, r=m-ou-se

Fix stabilization version of deque_range feature.

See https://github.com/rust-lang/rust/pull/79022#issuecomment-751315315
This commit is contained in:
Mara Bos 2020-12-28 19:09:35 +00:00 committed by GitHub
commit e3d26e007c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1092,7 +1092,7 @@ fn range_tail_head<R>(&self, range: R) -> (usize, usize)
/// assert_eq!(all.len(), 3);
/// ```
#[inline]
#[stable(feature = "deque_range", since = "1.50.0")]
#[stable(feature = "deque_range", since = "1.51.0")]
pub fn range<R>(&self, range: R) -> Iter<'_, T>
where
R: RangeBounds<usize>,
@ -1131,7 +1131,7 @@ pub fn range<R>(&self, range: R) -> Iter<'_, T>
/// assert_eq!(v, vec![2, 4, 12]);
/// ```
#[inline]
#[stable(feature = "deque_range", since = "1.50.0")]
#[stable(feature = "deque_range", since = "1.51.0")]
pub fn range_mut<R>(&mut self, range: R) -> IterMut<'_, T>
where
R: RangeBounds<usize>,