Fix diagnostics for unfulfilled obligations

This commit is contained in:
Deadbeef 2022-07-26 13:57:19 +00:00
parent d60ebe366b
commit 71e162e6ca
5 changed files with 20 additions and 26 deletions

View file

@ -10,7 +10,6 @@ note: the trait `PartialEq<_>` is implemented for `TypeId`, but that implementat
|
LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
| ^^
= help: the trait `PartialEq` is implemented for `TypeId`
error[E0277]: can't compare `TypeId` with `_` in const contexts
--> $DIR/issue-90318.rs:21:28
@ -24,7 +23,6 @@ note: the trait `PartialEq<_>` is implemented for `TypeId`, but that implementat
|
LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
| ^^
= help: the trait `PartialEq` is implemented for `TypeId`
error: aborting due to 2 previous errors

View file

@ -10,16 +10,6 @@ note: the trait `PartialEq<_>` is implemented for `fn()`, but that implementatio
|
LL | unsafe { x == y }
| ^^
= help: the following other types implement trait `PartialEq<Rhs>`:
extern "C" fn() -> Ret
extern "C" fn(A, B) -> Ret
extern "C" fn(A, B, ...) -> Ret
extern "C" fn(A, B, C) -> Ret
extern "C" fn(A, B, C, ...) -> Ret
extern "C" fn(A, B, C, D) -> Ret
extern "C" fn(A, B, C, D, ...) -> Ret
extern "C" fn(A, B, C, D, E) -> Ret
and 68 others
error: aborting due to previous error

View file

@ -9,13 +9,7 @@ note: the trait `PartialEq<_>` is implemented for `T`, but that implementation i
|
LL | *t == *t
| ^^
= help: the following other types implement trait `PartialEq<Rhs>`:
<&A as PartialEq<&B>>
<&A as PartialEq<&mut B>>
<&mut A as PartialEq<&B>>
<&mut A as PartialEq<&mut B>>
<*const T as PartialEq>
<*mut T as PartialEq>
= help: the trait `PartialEq<&B>` is implemented for `&A`
error: aborting due to previous error