Skip to content

Commit a931060

Browse files
committed
Stabilize option_insert.
1 parent 28b948f commit a931060

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/core/src/option.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,6 @@ impl<T> Option<T> {
601601
/// # Example
602602
///
603603
/// ```
604-
/// #![feature(option_insert)]
605-
///
606604
/// let mut opt = None;
607605
/// let val = opt.insert(1);
608606
/// assert_eq!(*val, 1);
@@ -613,7 +611,7 @@ impl<T> Option<T> {
613611
/// assert_eq!(opt.unwrap(), 3);
614612
/// ```
615613
#[inline]
616-
#[unstable(feature = "option_insert", reason = "newly added", issue = "78271")]
614+
#[stable(feature = "option_insert", since = "1.53.0")]
617615
pub fn insert(&mut self, value: T) -> &mut T {
618616
*self = Some(value);
619617

0 commit comments

Comments
 (0)