From 057878ac71c2e9647e90636e2517f64bc4ac4288 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 15 Aug 2018 14:12:17 +0300 Subject: Stablize Iterator::find_map --- src/libcore/iter/iterator.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/libcore/iter') diff --git a/src/libcore/iter/iterator.rs b/src/libcore/iter/iterator.rs index 5681cfb04f2..579a8089425 100644 --- a/src/libcore/iter/iterator.rs +++ b/src/libcore/iter/iterator.rs @@ -1794,7 +1794,6 @@ pub trait Iterator { /// # Examples /// /// ``` - /// #![feature(iterator_find_map)] /// let a = ["lol", "NaN", "2", "5"]; /// /// let mut first_number = a.iter().find_map(|s| s.parse().ok()); @@ -1802,9 +1801,7 @@ pub trait Iterator { /// assert_eq!(first_number, Some(2)); /// ``` #[inline] - #[unstable(feature = "iterator_find_map", - reason = "unstable new API", - issue = "49602")] + #[stable(feature = "iterator_find_map", since = "1.30.0")] fn find_map(&mut self, mut f: F) -> Option where Self: Sized, F: FnMut(Self::Item) -> Option, -- cgit 1.4.1-3-g733a5