@@ -1096,19 +1096,17 @@ impl<T, E> Result<T, E> {
1096
1096
/// # Examples
1097
1097
///
1098
1098
/// ```
1099
- /// #![feature(option_result_unwrap_unchecked)]
1100
1099
/// let x: Result<u32, &str> = Ok(2);
1101
1100
/// assert_eq!(unsafe { x.unwrap_unchecked() }, 2);
1102
1101
/// ```
1103
1102
///
1104
1103
/// ```no_run
1105
- /// #![feature(option_result_unwrap_unchecked)]
1106
1104
/// let x: Result<u32, &str> = Err("emergency failure");
1107
1105
/// unsafe { x.unwrap_unchecked(); } // Undefined behavior!
1108
1106
/// ```
1109
1107
#[ inline]
1110
1108
#[ track_caller]
1111
- #[ unstable ( feature = "option_result_unwrap_unchecked" , reason = "newly added" , issue = "81383 ") ]
1109
+ #[ stable ( feature = "option_result_unwrap_unchecked" , since = "1.58.0 " ) ]
1112
1110
pub unsafe fn unwrap_unchecked ( self ) -> T {
1113
1111
debug_assert ! ( self . is_ok( ) ) ;
1114
1112
match self {
@@ -1130,19 +1128,17 @@ impl<T, E> Result<T, E> {
1130
1128
/// # Examples
1131
1129
///
1132
1130
/// ```no_run
1133
- /// #![feature(option_result_unwrap_unchecked)]
1134
1131
/// let x: Result<u32, &str> = Ok(2);
1135
1132
/// unsafe { x.unwrap_err_unchecked() }; // Undefined behavior!
1136
1133
/// ```
1137
1134
///
1138
1135
/// ```
1139
- /// #![feature(option_result_unwrap_unchecked)]
1140
1136
/// let x: Result<u32, &str> = Err("emergency failure");
1141
1137
/// assert_eq!(unsafe { x.unwrap_err_unchecked() }, "emergency failure");
1142
1138
/// ```
1143
1139
#[ inline]
1144
1140
#[ track_caller]
1145
- #[ unstable ( feature = "option_result_unwrap_unchecked" , reason = "newly added" , issue = "81383 ") ]
1141
+ #[ stable ( feature = "option_result_unwrap_unchecked" , since = "1.58.0 " ) ]
1146
1142
pub unsafe fn unwrap_err_unchecked ( self ) -> E {
1147
1143
debug_assert ! ( self . is_err( ) ) ;
1148
1144
match self {
0 commit comments