You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a trait implementation like the following is defined in a crate's dependency graph, educe-generated Ord implementations will fail to compile:
structPoisonTypeInference;implFrom<&PoisonTypeInference>for*const(){fnfrom(value:&PoisonTypeInference) -> Self{
value as*constPoisonTypeInferenceas*const()}}
error[E0277]: the trait bound `*const _: From<&Enum2>` is not satisfied
--> tests/ord_enum.rs:15:29
|
15 | #[derive(PartialEq, Eq, Educe)]
| ^^^^^ the trait `From<&Enum2>` is not implemented for `*const _`
|
= note: this error originates in the derive macro `Educe` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0282]: type annotations needed
--> tests/ord_enum.rs:15:29
|
15 | #[derive(PartialEq, Eq, Educe)]
| ^^^^^
| |
| cannot infer type
| cannot call a method on a raw pointer with an unknown pointee type
|
= note: this error originates in the derive macro `Educe` (in Nightly builds, run with -Z macro-backtrace for more info)
Uh oh!
There was an error while loading. Please reload this page.
If a trait implementation like the following is defined in a crate's dependency graph, educe-generated
Ord
implementations will fail to compile:The failures come from these casts:
educe/src/trait_handlers/partial_ord/partial_ord_enum.rs
Line 218 in bc05181
educe/src/trait_handlers/ord/ord_enum.rs
Line 213 in bc05181
I think it should be fixable by explicitly specifying
*const Self
instead of*const _
.The text was updated successfully, but these errors were encountered: