Stablize Iterator::find_map
This commit is contained in:
parent
81cfaad030
commit
057878ac71
@ -1794,7 +1794,6 @@ fn find<P>(&mut self, mut predicate: P) -> Option<Self::Item> where
|
||||
/// # 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 @@ fn find<P>(&mut self, mut predicate: P) -> Option<Self::Item> where
|
||||
/// 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<B, F>(&mut self, mut f: F) -> Option<B> where
|
||||
Self: Sized,
|
||||
F: FnMut(Self::Item) -> Option<B>,
|
||||
|
@ -37,7 +37,6 @@
|
||||
#![feature(slice_align_to)]
|
||||
#![feature(align_offset)]
|
||||
#![feature(reverse_bits)]
|
||||
#![feature(iterator_find_map)]
|
||||
#![feature(inner_deref)]
|
||||
#![feature(slice_internals)]
|
||||
#![feature(option_replace)]
|
||||
|
@ -45,7 +45,6 @@
|
||||
#![feature(const_fn)]
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(drain_filter)]
|
||||
#![feature(iterator_find_map)]
|
||||
#![cfg_attr(windows, feature(libc))]
|
||||
#![feature(macro_vis_matcher)]
|
||||
#![feature(never_type)]
|
||||
|
@ -14,7 +14,6 @@
|
||||
#![feature(crate_in_paths)]
|
||||
#![feature(crate_visibility_modifier)]
|
||||
#![feature(extern_prelude)]
|
||||
#![feature(iterator_find_map)]
|
||||
#![feature(in_band_lifetimes)]
|
||||
#![cfg_attr(not(stage0), feature(nll))]
|
||||
|
||||
|
@ -75,7 +75,6 @@
|
||||
#![feature(box_syntax)]
|
||||
#![feature(crate_visibility_modifier)]
|
||||
#![feature(exhaustive_patterns)]
|
||||
#![feature(iterator_find_map)]
|
||||
#![cfg_attr(not(stage0), feature(nll))]
|
||||
#![feature(quote)]
|
||||
#![feature(refcell_replace_swap)]
|
||||
|
@ -16,7 +16,6 @@
|
||||
#![feature(rustc_private)]
|
||||
#![feature(box_patterns)]
|
||||
#![feature(box_syntax)]
|
||||
#![feature(iterator_find_map)]
|
||||
#![cfg_attr(not(stage0), feature(nll))]
|
||||
#![feature(set_stdio)]
|
||||
#![feature(slice_sort_by_cached_key)]
|
||||
|
Loading…
Reference in New Issue
Block a user