diff options
| author | Linus Färnstrand <faern@faern.net> | 2022-03-30 07:48:48 +0200 |
|---|---|---|
| committer | Linus Färnstrand <faern@faern.net> | 2022-03-30 20:28:50 +0200 |
| commit | 796f38519093ebb67ff1bd5f4f72e76d8ba8aeb8 (patch) | |
| tree | d9fa0959ec6d360d8f1fda89c5a8cc98ed74bad2 /library/alloc/src/collections/vec_deque | |
| parent | 3e7514670db841a7f0d7656f3b13b1c8b2c11599 (diff) | |
| download | rust-796f38519093ebb67ff1bd5f4f72e76d8ba8aeb8.tar.gz rust-796f38519093ebb67ff1bd5f4f72e76d8ba8aeb8.zip | |
Stabilize feature vec_retain_mut on Vec and VecDeque
Diffstat (limited to 'library/alloc/src/collections/vec_deque')
| -rw-r--r-- | library/alloc/src/collections/vec_deque/mod.rs | 4 |
1 files changed, 1 insertions, 3 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<T, A: Allocator> VecDeque<T, A> { /// # Examples /// /// ``` - /// #![feature(vec_retain_mut)] - /// /// use std::collections::VecDeque; /// /// let mut buf = VecDeque::new(); @@ -2199,7 +2197,7 @@ impl<T, A: Allocator> VecDeque<T, A> { /// }); /// 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<F>(&mut self, mut f: F) where F: FnMut(&mut T) -> bool, |
