File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
compiler/rustc_session/src Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 33#![ feature( iter_intersperse) ]
44#![ feature( let_chains) ]
55#![ feature( map_many_mut) ]
6- #![ feature( option_get_or_insert_default) ]
76#![ feature( rustc_attrs) ]
87#![ warn( unreachable_pub) ]
98// tidy-alphabetical-end
Original file line number Diff line number Diff line change @@ -1639,8 +1639,6 @@ impl<T> Option<T> {
16391639 /// # Examples
16401640 ///
16411641 /// ```
1642- /// #![feature(option_get_or_insert_default)]
1643- ///
16441642 /// let mut x = None;
16451643 ///
16461644 /// {
@@ -1653,7 +1651,7 @@ impl<T> Option<T> {
16531651 /// assert_eq!(x, Some(7));
16541652 /// ```
16551653 #[ inline]
1656- #[ unstable ( feature = "option_get_or_insert_default" , issue = "82901 " ) ]
1654+ #[ stable ( feature = "option_get_or_insert_default" , since = "CURRENT_RUSTC_VERSION " ) ]
16571655 pub fn get_or_insert_default ( & mut self ) -> & mut T
16581656 where
16591657 T : Default ,
You can’t perform that action at this time.
0 commit comments