We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents edc72ca + 7921401 commit 7ddd566Copy full SHA for 7ddd566
core/src/option.rs
@@ -1639,8 +1639,6 @@ impl<T> Option<T> {
1639
/// # Examples
1640
///
1641
/// ```
1642
- /// #![feature(option_get_or_insert_default)]
1643
- ///
1644
/// let mut x = None;
1645
1646
/// {
@@ -1653,7 +1651,7 @@ impl<T> Option<T> {
1653
1651
/// assert_eq!(x, Some(7));
1654
1652
1655
#[inline]
1656
- #[unstable(feature = "option_get_or_insert_default", issue = "82901")]
+ #[stable(feature = "option_get_or_insert_default", since = "CURRENT_RUSTC_VERSION")]
1657
pub fn get_or_insert_default(&mut self) -> &mut T
1658
where
1659
T: Default,
0 commit comments