File tree 2 files changed +1
-4
lines changed
compiler/rustc_session/src
2 files changed +1
-4
lines changed 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
#![ warn( unreachable_pub) ]
9
8
// tidy-alphabetical-end
Original file line number Diff line number Diff line change @@ -1639,8 +1639,6 @@ impl<T> Option<T> {
1639
1639
/// # Examples
1640
1640
///
1641
1641
/// ```
1642
- /// #![feature(option_get_or_insert_default)]
1643
- ///
1644
1642
/// let mut x = None;
1645
1643
///
1646
1644
/// {
@@ -1653,7 +1651,7 @@ impl<T> Option<T> {
1653
1651
/// assert_eq!(x, Some(7));
1654
1652
/// ```
1655
1653
#[ inline]
1656
- #[ unstable ( feature = "option_get_or_insert_default" , issue = "82901 " ) ]
1654
+ #[ stable ( feature = "option_get_or_insert_default" , since = "CURRENT_RUSTC_VERSION " ) ]
1657
1655
pub fn get_or_insert_default ( & mut self ) -> & mut T
1658
1656
where
1659
1657
T : Default ,
You can’t perform that action at this time.
0 commit comments