We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
option_get_or_insert_default
1 parent 3b8aab7 commit 7921401Copy full SHA for 7921401
core/src/option.rs
@@ -1650,8 +1650,6 @@ impl<T> Option<T> {
1650
/// # Examples
1651
///
1652
/// ```
1653
- /// #![feature(option_get_or_insert_default)]
1654
- ///
1655
/// let mut x = None;
1656
1657
/// {
@@ -1664,7 +1662,7 @@ impl<T> Option<T> {
1664
1662
/// assert_eq!(x, Some(7));
1665
1663
1666
#[inline]
1667
- #[unstable(feature = "option_get_or_insert_default", issue = "82901")]
+ #[stable(feature = "option_get_or_insert_default", since = "CURRENT_RUSTC_VERSION")]
1668
pub fn get_or_insert_default(&mut self) -> &mut T
1669
where
1670
T: Default,
0 commit comments