Skip to content

Commit f1ca558

Browse files
committed
Auto merge of #84088 - m-ou-se:stabilize-option-insert, r=m-ou-se
Stabilize option_insert. FCP finished here: #78271 (comment)
2 parents 8aa1181 + a931060 commit f1ca558

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)