Skip to content

Commit 92b57c0

Browse files
committed
Updated for new const trait bounds syntax
1 parent 3051bb9 commit 92b57c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/convert/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ where
535535
#[rustc_const_unstable(feature = "const_convert", issue = "none")]
536536
impl<T, U> const Into<U> for T
537537
where
538-
U: From<T>,
538+
U: ~const From<T>,
539539
{
540540
fn into(self) -> U {
541541
U::from(self)

library/core/src/result.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1910,7 +1910,7 @@ impl<T, E> const ops::Try for Result<T, E> {
19101910

19111911
#[unstable(feature = "try_trait_v2", issue = "84277")]
19121912
#[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> {
1913+
impl<T, E, F: ~const From<E>> const ops::FromResidual<Result<convert::Infallible, E>> for Result<T, F> {
19141914
#[inline]
19151915
fn from_residual(residual: Result<convert::Infallible, E>) -> Self {
19161916
match residual {

0 commit comments

Comments
 (0)