File tree 3 files changed +1
-5
lines changed
3 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 9
9
#![ feature( let_chains) ]
10
10
#![ feature( map_try_insert) ]
11
11
#![ feature( never_type) ]
12
- #![ feature( option_get_or_insert_default) ]
13
12
#![ feature( round_char_boundary) ]
14
13
#![ feature( try_blocks) ]
15
14
#![ feature( yeet_expr) ]
Original file line number Diff line number Diff line change 3
3
#![ feature( iter_intersperse) ]
4
4
#![ feature( let_chains) ]
5
5
#![ feature( map_many_mut) ]
6
- #![ feature( option_get_or_insert_default) ]
7
6
#![ feature( rustc_attrs) ]
8
7
// tidy-alphabetical-end
9
8
Original file line number Diff line number Diff line change @@ -1650,8 +1650,6 @@ impl<T> Option<T> {
1650
1650
/// # Examples
1651
1651
///
1652
1652
/// ```
1653
- /// #![feature(option_get_or_insert_default)]
1654
- ///
1655
1653
/// let mut x = None;
1656
1654
///
1657
1655
/// {
@@ -1664,7 +1662,7 @@ impl<T> Option<T> {
1664
1662
/// assert_eq!(x, Some(7));
1665
1663
/// ```
1666
1664
#[ inline]
1667
- #[ unstable ( feature = "option_get_or_insert_default" , issue = "82901 " ) ]
1665
+ #[ stable ( feature = "option_get_or_insert_default" , since = "CURRENT_RUSTC_VERSION " ) ]
1668
1666
pub fn get_or_insert_default ( & mut self ) -> & mut T
1669
1667
where
1670
1668
T : Default ,
You can’t perform that action at this time.
0 commit comments