about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-15 12:37:19 +0000
committerbors <bors@rust-lang.org>2021-04-15 12:37:19 +0000
commitf1ca558db189690a9774713306c94550681ac590 (patch)
treea8d4ef8eb3c32b529ba81a4368775783b3cd228c
parent8aa11816f32d2e5c19be3f46508e79d1aa2fb3ab (diff)
parenta9310601071a056cbcbf92d6d5c4ad8a45ba0fc0 (diff)
downloadrust-f1ca558db189690a9774713306c94550681ac590.tar.gz
rust-f1ca558db189690a9774713306c94550681ac590.zip
Auto merge of #84088 - m-ou-se:stabilize-option-insert, r=m-ou-se
Stabilize option_insert.

FCP finished here: https://github.com/rust-lang/rust/issues/78271#issuecomment-817201319
-rw-r--r--library/core/src/option.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/library/core/src/option.rs b/library/core/src/option.rs
index da2c0cf476d..1e1e9613696 100644
--- a/library/core/src/option.rs
+++ b/library/core/src/option.rs
@@ -601,8 +601,6 @@ impl<T> Option<T> {
     /// # Example
     ///
     /// ```
-    /// #![feature(option_insert)]
-    ///
     /// let mut opt = None;
     /// let val = opt.insert(1);
     /// assert_eq!(*val, 1);
@@ -613,7 +611,7 @@ impl<T> Option<T> {
     /// assert_eq!(opt.unwrap(), 3);
     /// ```
     #[inline]
-    #[unstable(feature = "option_insert", reason = "newly added", issue = "78271")]
+    #[stable(feature = "option_insert", since = "1.53.0")]
     pub fn insert(&mut self, value: T) -> &mut T {
         *self = Some(value);