@@ -1038,8 +1038,6 @@ impl<T: fmt::Debug> Option<T> {
10381038 /// # Examples
10391039 ///
10401040 /// ```
1041- /// #![feature(option_expect_none)]
1042- ///
10431041 /// use std::collections::HashMap;
10441042 /// let mut squares = HashMap::new();
10451043 /// for i in -10..=10 {
@@ -1049,8 +1047,6 @@ impl<T: fmt::Debug> Option<T> {
10491047 /// ```
10501048 ///
10511049 /// ```{.should_panic}
1052- /// #![feature(option_expect_none)]
1053- ///
10541050 /// use std::collections::HashMap;
10551051 /// let mut sqrts = HashMap::new();
10561052 /// for i in -10..=10 {
@@ -1061,7 +1057,7 @@ impl<T: fmt::Debug> Option<T> {
10611057 /// ```
10621058 #[ inline]
10631059 #[ track_caller]
1064- #[ unstable ( feature = "option_expect_none" , reason = "newly added" , issue = "62633 ") ]
1060+ #[ stable ( feature = "option_expect_none" , since = "1.49.0 " ) ]
10651061 pub fn expect_none ( self , msg : & str ) {
10661062 if let Some ( val) = self {
10671063 expect_none_failed ( msg, & val) ;
@@ -1080,8 +1076,6 @@ impl<T: fmt::Debug> Option<T> {
10801076 /// # Examples
10811077 ///
10821078 /// ```
1083- /// #![feature(option_unwrap_none)]
1084- ///
10851079 /// use std::collections::HashMap;
10861080 /// let mut squares = HashMap::new();
10871081 /// for i in -10..=10 {
@@ -1091,8 +1085,6 @@ impl<T: fmt::Debug> Option<T> {
10911085 /// ```
10921086 ///
10931087 /// ```{.should_panic}
1094- /// #![feature(option_unwrap_none)]
1095- ///
10961088 /// use std::collections::HashMap;
10971089 /// let mut sqrts = HashMap::new();
10981090 /// for i in -10..=10 {
@@ -1103,7 +1095,7 @@ impl<T: fmt::Debug> Option<T> {
11031095 /// ```
11041096 #[ inline]
11051097 #[ track_caller]
1106- #[ unstable ( feature = "option_unwrap_none" , reason = "newly added" , issue = "62633 ") ]
1098+ #[ stable ( feature = "option_unwrap_none" , since = "1.49.0 " ) ]
11071099 pub fn unwrap_none ( self ) {
11081100 if let Some ( val) = self {
11091101 expect_none_failed ( "called `Option::unwrap_none()` on a `Some` value" , & val) ;
0 commit comments