Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 88258c0

Browse files
committed
Constly impl TryV2 and FromResidual for Result
1 parent b85107e commit 88258c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

library/core/src/result.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,8 @@ impl<A, E, V: FromIterator<A>> FromIterator<Result<A, E>> for Result<V, E> {
18891889
}
18901890

18911891
#[unstable(feature = "try_trait_v2", issue = "84277")]
1892-
impl<T, E> ops::Try for Result<T, E> {
1892+
#[rustc_const_unstable(feature = "const_convert", issue = "none")]
1893+
impl<T, E> const ops::Try for Result<T, E> {
18931894
type Output = T;
18941895
type Residual = Result<convert::Infallible, E>;
18951896

@@ -1908,7 +1909,8 @@ impl<T, E> ops::Try for Result<T, E> {
19081909
}
19091910

19101911
#[unstable(feature = "try_trait_v2", issue = "84277")]
1911-
impl<T, E, F: From<E>> ops::FromResidual<Result<convert::Infallible, E>> for Result<T, F> {
1912+
#[rustc_const_unstable(feature = "const_convert", issue = "none")]
1913+
impl<T, E, F: From<E>> const ops::FromResidual<Result<convert::Infallible, E>> for Result<T, F> {
19121914
#[inline]
19131915
fn from_residual(residual: Result<convert::Infallible, E>) -> Self {
19141916
match residual {

0 commit comments

Comments
 (0)