Skip to content

Commit

Permalink
Rollup merge of rust-lang#80448 - m-ou-se:deque-range-version, r=m-ou-se
Browse files Browse the repository at this point in the history
Fix stabilization version of deque_range feature.

See rust-lang#79022 (comment)
  • Loading branch information
m-ou-se authored Dec 28, 2020
2 parents 5a08162 + 10d6ff7 commit e3d26e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/alloc/src/collections/vec_deque/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ impl<T> VecDeque<T> {
/// 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>,
Expand Down Expand Up @@ -1131,7 +1131,7 @@ impl<T> VecDeque<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>,
Expand Down

0 comments on commit e3d26e0

Please sign in to comment.