File tree 2 files changed +1
-4
lines changed
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 3
3
#![ feature( drain_filter) ]
4
4
#![ feature( exact_size_is_empty) ]
5
5
#![ feature( new_uninit) ]
6
- #![ feature( option_flattening) ]
7
6
#![ feature( pattern) ]
8
7
#![ feature( trusted_len) ]
9
8
#![ feature( try_reserve) ]
Original file line number Diff line number Diff line change @@ -1568,7 +1568,6 @@ impl<T> Option<Option<T>> {
1568
1568
/// # Examples
1569
1569
/// Basic usage:
1570
1570
/// ```
1571
- /// #![feature(option_flattening)]
1572
1571
/// let x: Option<Option<u32>> = Some(Some(6));
1573
1572
/// assert_eq!(Some(6), x.flatten());
1574
1573
///
@@ -1580,13 +1579,12 @@ impl<T> Option<Option<T>> {
1580
1579
/// ```
1581
1580
/// Flattening once only removes one level of nesting:
1582
1581
/// ```
1583
- /// #![feature(option_flattening)]
1584
1582
/// let x: Option<Option<Option<u32>>> = Some(Some(Some(6)));
1585
1583
/// assert_eq!(Some(Some(6)), x.flatten());
1586
1584
/// assert_eq!(Some(6), x.flatten().flatten());
1587
1585
/// ```
1588
1586
#[ inline]
1589
- #[ unstable ( feature = "option_flattening" , issue = "60258 " ) ]
1587
+ #[ stable ( feature = "option_flattening" , since = "1.40.0 " ) ]
1590
1588
pub fn flatten ( self ) -> Option < T > {
1591
1589
self . and_then ( convert:: identity)
1592
1590
}
You can’t perform that action at this time.
0 commit comments