@@ -1096,19 +1096,17 @@ impl<T, E> Result<T, E> {
10961096 /// # Examples
10971097 ///
10981098 /// ```
1099- /// #![feature(option_result_unwrap_unchecked)]
11001099 /// let x: Result<u32, &str> = Ok(2);
11011100 /// assert_eq!(unsafe { x.unwrap_unchecked() }, 2);
11021101 /// ```
11031102 ///
11041103 /// ```no_run
1105- /// #![feature(option_result_unwrap_unchecked)]
11061104 /// let x: Result<u32, &str> = Err("emergency failure");
11071105 /// unsafe { x.unwrap_unchecked(); } // Undefined behavior!
11081106 /// ```
11091107 #[inline]
11101108 #[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 ")]
11121110 pub unsafe fn unwrap_unchecked(self) -> T {
11131111 debug_assert!(self.is_ok());
11141112 match self {
@@ -1130,19 +1128,17 @@ impl<T, E> Result<T, E> {
11301128 /// # Examples
11311129 ///
11321130 /// ```no_run
1133- /// #![feature(option_result_unwrap_unchecked)]
11341131 /// let x: Result<u32, &str> = Ok(2);
11351132 /// unsafe { x.unwrap_err_unchecked() }; // Undefined behavior!
11361133 /// ```
11371134 ///
11381135 /// ```
1139- /// #![feature(option_result_unwrap_unchecked)]
11401136 /// let x: Result<u32, &str> = Err("emergency failure");
11411137 /// assert_eq!(unsafe { x.unwrap_err_unchecked() }, "emergency failure");
11421138 /// ```
11431139 #[inline]
11441140 #[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 ")]
11461142 pub unsafe fn unwrap_err_unchecked(self) -> E {
11471143 debug_assert!(self.is_err());
11481144 match self {
0 commit comments