|
534 | 534 | #![stable(feature = "rust1", since = "1.0.0")] |
535 | 535 |
|
536 | 536 | use crate::iter::{self, FusedIterator, TrustedLen}; |
537 | | -use crate::marker::Destruct; |
538 | 537 | use crate::ops::{self, ControlFlow, Deref, DerefMut}; |
539 | 538 | use crate::{convert, fmt, hint}; |
540 | 539 |
|
@@ -1289,11 +1288,11 @@ impl<T, E> Result<T, E> { |
1289 | 1288 | /// ``` |
1290 | 1289 | #[unstable(feature = "unwrap_infallible", reason = "newly added", issue = "61695")] |
1291 | 1290 | #[inline] |
| 1291 | + #[rustc_allow_const_fn_unstable(const_precise_live_drops)] |
1292 | 1292 | #[rustc_const_unstable(feature = "const_try", issue = "74935")] |
1293 | 1293 | pub const fn into_ok(self) -> T |
1294 | 1294 | where |
1295 | | - E: ~const Into<!> + ~const Destruct, |
1296 | | - T: ~const Destruct, |
| 1295 | + E: ~const Into<!>, |
1297 | 1296 | { |
1298 | 1297 | match self { |
1299 | 1298 | Ok(x) => x, |
@@ -1326,11 +1325,11 @@ impl<T, E> Result<T, E> { |
1326 | 1325 | /// ``` |
1327 | 1326 | #[unstable(feature = "unwrap_infallible", reason = "newly added", issue = "61695")] |
1328 | 1327 | #[inline] |
| 1328 | + #[rustc_allow_const_fn_unstable(const_precise_live_drops)] |
1329 | 1329 | #[rustc_const_unstable(feature = "const_try", issue = "74935")] |
1330 | 1330 | pub const fn into_err(self) -> E |
1331 | 1331 | where |
1332 | | - T: ~const Into<!> + ~const Destruct, |
1333 | | - E: ~const Destruct, |
| 1332 | + T: ~const Into<!>, |
1334 | 1333 | { |
1335 | 1334 | match self { |
1336 | 1335 | Ok(x) => x.into(), |
|
0 commit comments