@@ -1038,8 +1038,6 @@ impl<T: fmt::Debug> Option<T> {
1038
1038
/// # Examples
1039
1039
///
1040
1040
/// ```
1041
- /// #![feature(option_expect_none)]
1042
- ///
1043
1041
/// use std::collections::HashMap;
1044
1042
/// let mut squares = HashMap::new();
1045
1043
/// for i in -10..=10 {
@@ -1049,8 +1047,6 @@ impl<T: fmt::Debug> Option<T> {
1049
1047
/// ```
1050
1048
///
1051
1049
/// ```{.should_panic}
1052
- /// #![feature(option_expect_none)]
1053
- ///
1054
1050
/// use std::collections::HashMap;
1055
1051
/// let mut sqrts = HashMap::new();
1056
1052
/// for i in -10..=10 {
@@ -1061,7 +1057,7 @@ impl<T: fmt::Debug> Option<T> {
1061
1057
/// ```
1062
1058
#[ inline]
1063
1059
#[ track_caller]
1064
- #[ unstable ( feature = "option_expect_none" , reason = "newly added" , issue = "62633 ") ]
1060
+ #[ stable ( feature = "option_expect_none" , since = "1.49.0 " ) ]
1065
1061
pub fn expect_none ( self , msg : & str ) {
1066
1062
if let Some ( val) = self {
1067
1063
expect_none_failed ( msg, & val) ;
@@ -1080,8 +1076,6 @@ impl<T: fmt::Debug> Option<T> {
1080
1076
/// # Examples
1081
1077
///
1082
1078
/// ```
1083
- /// #![feature(option_unwrap_none)]
1084
- ///
1085
1079
/// use std::collections::HashMap;
1086
1080
/// let mut squares = HashMap::new();
1087
1081
/// for i in -10..=10 {
@@ -1091,8 +1085,6 @@ impl<T: fmt::Debug> Option<T> {
1091
1085
/// ```
1092
1086
///
1093
1087
/// ```{.should_panic}
1094
- /// #![feature(option_unwrap_none)]
1095
- ///
1096
1088
/// use std::collections::HashMap;
1097
1089
/// let mut sqrts = HashMap::new();
1098
1090
/// for i in -10..=10 {
@@ -1103,7 +1095,7 @@ impl<T: fmt::Debug> Option<T> {
1103
1095
/// ```
1104
1096
#[ inline]
1105
1097
#[ track_caller]
1106
- #[ unstable ( feature = "option_unwrap_none" , reason = "newly added" , issue = "62633 ") ]
1098
+ #[ stable ( feature = "option_unwrap_none" , since = "1.49.0 " ) ]
1107
1099
pub fn unwrap_none ( self ) {
1108
1100
if let Some ( val) = self {
1109
1101
expect_none_failed ( "called `Option::unwrap_none()` on a `Some` value" , & val) ;
0 commit comments