Skip to content

Commit 796f385

Browse files
committed
Stabilize feature vec_retain_mut on Vec and VecDeque
1 parent 3e75146 commit 796f385

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

library/alloc/src/collections/vec_deque/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -2185,8 +2185,6 @@ impl<T, A: Allocator> VecDeque<T, A> {
21852185
/// # Examples
21862186
///
21872187
/// ```
2188-
/// #![feature(vec_retain_mut)]
2189-
///
21902188
/// use std::collections::VecDeque;
21912189
///
21922190
/// let mut buf = VecDeque::new();
@@ -2199,7 +2197,7 @@ impl<T, A: Allocator> VecDeque<T, A> {
21992197
/// });
22002198
/// assert_eq!(buf, [3, 5]);
22012199
/// ```
2202-
#[unstable(feature = "vec_retain_mut", issue = "90829")]
2200+
#[stable(feature = "vec_retain_mut", since = "1.61.0")]
22032201
pub fn retain_mut<F>(&mut self, mut f: F)
22042202
where
22052203
F: FnMut(&mut T) -> bool,

library/alloc/src/vec/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1467,8 +1467,6 @@ impl<T, A: Allocator> Vec<T, A> {
14671467
/// # Examples
14681468
///
14691469
/// ```
1470-
/// #![feature(vec_retain_mut)]
1471-
///
14721470
/// let mut vec = vec![1, 2, 3, 4];
14731471
/// vec.retain_mut(|x| if *x > 3 {
14741472
/// false
@@ -1478,7 +1476,7 @@ impl<T, A: Allocator> Vec<T, A> {
14781476
/// });
14791477
/// assert_eq!(vec, [2, 3, 4]);
14801478
/// ```
1481-
#[unstable(feature = "vec_retain_mut", issue = "90829")]
1479+
#[stable(feature = "vec_retain_mut", since = "1.61.0")]
14821480
pub fn retain_mut<F>(&mut self, mut f: F)
14831481
where
14841482
F: FnMut(&mut T) -> bool,

0 commit comments

Comments
 (0)