Updated for new const trait bounds syntax

This commit is contained in:
Albin Hedman 2021-09-05 22:51:25 +02:00
parent 3051bb9c81
commit 92b57c0476
No known key found for this signature in database
GPG key ID: 1F501ECD1BBD70A7
2 changed files with 2 additions and 2 deletions

View file

@ -535,7 +535,7 @@ where
#[rustc_const_unstable(feature = "const_convert", issue = "none")] #[rustc_const_unstable(feature = "const_convert", issue = "none")]
impl<T, U> const Into<U> for T impl<T, U> const Into<U> for T
where where
U: From<T>, U: ~const From<T>,
{ {
fn into(self) -> U { fn into(self) -> U {
U::from(self) U::from(self)

View file

@ -1910,7 +1910,7 @@ impl<T, E> const ops::Try for Result<T, E> {
#[unstable(feature = "try_trait_v2", issue = "84277")] #[unstable(feature = "try_trait_v2", issue = "84277")]
#[rustc_const_unstable(feature = "const_convert", issue = "none")] #[rustc_const_unstable(feature = "const_convert", issue = "none")]
impl<T, E, F: From<E>> const ops::FromResidual<Result<convert::Infallible, E>> for Result<T, F> { impl<T, E, F: ~const From<E>> const ops::FromResidual<Result<convert::Infallible, E>> for Result<T, F> {
#[inline] #[inline]
fn from_residual(residual: Result<convert::Infallible, E>) -> Self { fn from_residual(residual: Result<convert::Infallible, E>) -> Self {
match residual { match residual {