| @@ -1650,8 +1650,6 @@ impl Option { |
|
|
| 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 Option { |
|
|
| 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, |