Stablize Iterator::find_map

This commit is contained in:
Aleksey Kladov 2018-08-15 14:12:17 +03:00
parent 81cfaad030
commit 057878ac71
6 changed files with 1 additions and 9 deletions

View File

@ -1794,7 +1794,6 @@ fn find<P>(&mut self, mut predicate: P) -> Option<Self::Item> where
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(iterator_find_map)]
/// let a = ["lol", "NaN", "2", "5"]; /// let a = ["lol", "NaN", "2", "5"];
/// ///
/// let mut first_number = a.iter().find_map(|s| s.parse().ok()); /// let mut first_number = a.iter().find_map(|s| s.parse().ok());
@ -1802,9 +1801,7 @@ fn find<P>(&mut self, mut predicate: P) -> Option<Self::Item> where
/// assert_eq!(first_number, Some(2)); /// assert_eq!(first_number, Some(2));
/// ``` /// ```
#[inline] #[inline]
#[unstable(feature = "iterator_find_map", #[stable(feature = "iterator_find_map", since = "1.30.0")]
reason = "unstable new API",
issue = "49602")]
fn find_map<B, F>(&mut self, mut f: F) -> Option<B> where fn find_map<B, F>(&mut self, mut f: F) -> Option<B> where
Self: Sized, Self: Sized,
F: FnMut(Self::Item) -> Option<B>, F: FnMut(Self::Item) -> Option<B>,

View File

@ -37,7 +37,6 @@
#![feature(slice_align_to)] #![feature(slice_align_to)]
#![feature(align_offset)] #![feature(align_offset)]
#![feature(reverse_bits)] #![feature(reverse_bits)]
#![feature(iterator_find_map)]
#![feature(inner_deref)] #![feature(inner_deref)]
#![feature(slice_internals)] #![feature(slice_internals)]
#![feature(option_replace)] #![feature(option_replace)]

View File

@ -45,7 +45,6 @@
#![feature(const_fn)] #![feature(const_fn)]
#![feature(core_intrinsics)] #![feature(core_intrinsics)]
#![feature(drain_filter)] #![feature(drain_filter)]
#![feature(iterator_find_map)]
#![cfg_attr(windows, feature(libc))] #![cfg_attr(windows, feature(libc))]
#![feature(macro_vis_matcher)] #![feature(macro_vis_matcher)]
#![feature(never_type)] #![feature(never_type)]

View File

@ -14,7 +14,6 @@
#![feature(crate_in_paths)] #![feature(crate_in_paths)]
#![feature(crate_visibility_modifier)] #![feature(crate_visibility_modifier)]
#![feature(extern_prelude)] #![feature(extern_prelude)]
#![feature(iterator_find_map)]
#![feature(in_band_lifetimes)] #![feature(in_band_lifetimes)]
#![cfg_attr(not(stage0), feature(nll))] #![cfg_attr(not(stage0), feature(nll))]

View File

@ -75,7 +75,6 @@
#![feature(box_syntax)] #![feature(box_syntax)]
#![feature(crate_visibility_modifier)] #![feature(crate_visibility_modifier)]
#![feature(exhaustive_patterns)] #![feature(exhaustive_patterns)]
#![feature(iterator_find_map)]
#![cfg_attr(not(stage0), feature(nll))] #![cfg_attr(not(stage0), feature(nll))]
#![feature(quote)] #![feature(quote)]
#![feature(refcell_replace_swap)] #![feature(refcell_replace_swap)]

View File

@ -16,7 +16,6 @@
#![feature(rustc_private)] #![feature(rustc_private)]
#![feature(box_patterns)] #![feature(box_patterns)]
#![feature(box_syntax)] #![feature(box_syntax)]
#![feature(iterator_find_map)]
#![cfg_attr(not(stage0), feature(nll))] #![cfg_attr(not(stage0), feature(nll))]
#![feature(set_stdio)] #![feature(set_stdio)]
#![feature(slice_sort_by_cached_key)] #![feature(slice_sort_by_cached_key)]