File tree 6 files changed +1
-9
lines changed
6 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -1794,17 +1794,14 @@ pub trait Iterator {
1794
1794
/// # Examples
1795
1795
///
1796
1796
/// ```
1797
- /// #![feature(iterator_find_map)]
1798
1797
/// let a = ["lol", "NaN", "2", "5"];
1799
1798
///
1800
1799
/// let mut first_number = a.iter().find_map(|s| s.parse().ok());
1801
1800
///
1802
1801
/// assert_eq!(first_number, Some(2));
1803
1802
/// ```
1804
1803
#[ inline]
1805
- #[ unstable( feature = "iterator_find_map" ,
1806
- reason = "unstable new API" ,
1807
- issue = "49602" ) ]
1804
+ #[ stable( feature = "iterator_find_map" , since = "1.30.0" ) ]
1808
1805
fn find_map < B , F > ( & mut self , mut f : F ) -> Option < B > where
1809
1806
Self : Sized ,
1810
1807
F : FnMut ( Self :: Item ) -> Option < B > ,
Original file line number Diff line number Diff line change 37
37
#![ feature( slice_align_to) ]
38
38
#![ feature( align_offset) ]
39
39
#![ feature( reverse_bits) ]
40
- #![ feature( iterator_find_map) ]
41
40
#![ feature( inner_deref) ]
42
41
#![ feature( slice_internals) ]
43
42
#![ feature( option_replace) ]
Original file line number Diff line number Diff line change 45
45
#![ feature( const_fn) ]
46
46
#![ feature( core_intrinsics) ]
47
47
#![ feature( drain_filter) ]
48
- #![ feature( iterator_find_map) ]
49
48
#![ cfg_attr( windows, feature( libc) ) ]
50
49
#![ cfg_attr( stage0, feature( macro_vis_matcher) ) ]
51
50
#![ feature( never_type) ]
Original file line number Diff line number Diff line change 14
14
#![ feature( crate_in_paths) ]
15
15
#![ feature( crate_visibility_modifier) ]
16
16
#![ feature( extern_prelude) ]
17
- #![ feature( iterator_find_map) ]
18
17
#![ feature( in_band_lifetimes) ]
19
18
#![ cfg_attr( not( stage0) , feature( nll) ) ]
20
19
Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ This API is completely unstable and subject to change.
75
75
#![ feature( box_syntax) ]
76
76
#![ feature( crate_visibility_modifier) ]
77
77
#![ feature( exhaustive_patterns) ]
78
- #![ feature( iterator_find_map) ]
79
78
#![ cfg_attr( not( stage0) , feature( nll) ) ]
80
79
#![ feature( quote) ]
81
80
#![ feature( refcell_replace_swap) ]
Original file line number Diff line number Diff line change 16
16
#![ feature( rustc_private) ]
17
17
#![ feature( box_patterns) ]
18
18
#![ feature( box_syntax) ]
19
- #![ feature( iterator_find_map) ]
20
19
#![ cfg_attr( not( stage0) , feature( nll) ) ]
21
20
#![ feature( set_stdio) ]
22
21
#![ feature( slice_sort_by_cached_key) ]
You can’t perform that action at this time.
0 commit comments