From 796f38519093ebb67ff1bd5f4f72e76d8ba8aeb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Wed, 30 Mar 2022 07:48:48 +0200 Subject: [PATCH] Stabilize feature vec_retain_mut on Vec and VecDeque --- library/alloc/src/collections/vec_deque/mod.rs | 4 +--- library/alloc/src/vec/mod.rs | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/library/alloc/src/collections/vec_deque/mod.rs b/library/alloc/src/collections/vec_deque/mod.rs index 63280e56332..dcae58ae590 100644 --- a/library/alloc/src/collections/vec_deque/mod.rs +++ b/library/alloc/src/collections/vec_deque/mod.rs @@ -2185,8 +2185,6 @@ impl VecDeque { /// # Examples /// /// ``` - /// #![feature(vec_retain_mut)] - /// /// use std::collections::VecDeque; /// /// let mut buf = VecDeque::new(); @@ -2199,7 +2197,7 @@ impl VecDeque { /// }); /// assert_eq!(buf, [3, 5]); /// ``` - #[unstable(feature = "vec_retain_mut", issue = "90829")] + #[stable(feature = "vec_retain_mut", since = "1.61.0")] pub fn retain_mut(&mut self, mut f: F) where F: FnMut(&mut T) -> bool, diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index 1ca5ee55375..87652ca7ddd 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -1467,8 +1467,6 @@ impl Vec { /// # Examples /// /// ``` - /// #![feature(vec_retain_mut)] - /// /// let mut vec = vec![1, 2, 3, 4]; /// vec.retain_mut(|x| if *x > 3 { /// false @@ -1478,7 +1476,7 @@ impl Vec { /// }); /// assert_eq!(vec, [2, 3, 4]); /// ``` - #[unstable(feature = "vec_retain_mut", issue = "90829")] + #[stable(feature = "vec_retain_mut", since = "1.61.0")] pub fn retain_mut(&mut self, mut f: F) where F: FnMut(&mut T) -> bool,