From 65242592c92f17008cee251b26c2b8f8bdbd3a94 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Mon, 23 May 2022 18:04:53 +0900 Subject: [PATCH] Stabilize `cell_filter_map` --- library/core/src/cell.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs index 9884b7f404e3d..321f2feb921cf 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -1390,8 +1390,6 @@ impl<'b, T: ?Sized> Ref<'b, T> { /// # Examples /// /// ``` - /// #![feature(cell_filter_map)] - /// /// use std::cell::{RefCell, Ref}; /// /// let c = RefCell::new(vec![1, 2, 3]); @@ -1399,7 +1397,7 @@ impl<'b, T: ?Sized> Ref<'b, T> { /// let b2: Result, _> = Ref::filter_map(b1, |v| v.get(1)); /// assert_eq!(*b2.unwrap(), 2); /// ``` - #[unstable(feature = "cell_filter_map", reason = "recently added", issue = "81061")] + #[stable(feature = "cell_filter_map", since = "1.63.0")] #[inline] pub fn filter_map(orig: Ref<'b, T>, f: F) -> Result, Self> where @@ -1538,8 +1536,6 @@ impl<'b, T: ?Sized> RefMut<'b, T> { /// # Examples /// /// ``` - /// #![feature(cell_filter_map)] - /// /// use std::cell::{RefCell, RefMut}; /// /// let c = RefCell::new(vec![1, 2, 3]); @@ -1555,7 +1551,7 @@ impl<'b, T: ?Sized> RefMut<'b, T> { /// /// assert_eq!(*c.borrow(), vec![1, 4, 3]); /// ``` - #[unstable(feature = "cell_filter_map", reason = "recently added", issue = "81061")] + #[stable(feature = "cell_filter_map", since = "1.63.0")] #[inline] pub fn filter_map(mut orig: RefMut<'b, T>, f: F) -> Result, Self> where