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
The type of assoc is <<T as Id<?u>>::Id as Outer>::Assoc and we have a T: Outer<Assoc = i32> where bound. <T as Id<?u>>::Id uses the impl candidate and normalizes to T, doing so tries to prove U: Copy, resulting in Certainty::Ambiguity. We now use the ParamEnv candidate for <<T as Id<?u>>::Id as Outer>::Assoc (<T as Outer>::Assoc after normalizing the self type). In discard_impls_shadowed_by_env there exists an ambiguous ParamEnv trait candidate, causing us to discard all constraints.
We should somehow only limit "discard all constraints" to the case where there are multiple ParamEnv candidates and we're unable to choose, not if we have an applicable ParamEnv candidate which is ambiguous.
The text was updated successfully, but these errors were encountered:
the following works with the old solver but breaks with new:
The type of assoc is
<<T as Id<?u>>::Id as Outer>::Assoc
and we have aT: Outer<Assoc = i32>
where bound.<T as Id<?u>>::Id
uses the impl candidate and normalizes toT
, doing so tries to proveU: Copy
, resulting inCertainty::Ambiguity
. We now use theParamEnv
candidate for<<T as Id<?u>>::Id as Outer>::Assoc
(<T as Outer>::Assoc
after normalizing the self type). Indiscard_impls_shadowed_by_env
there exists an ambiguousParamEnv
trait candidate, causing us to discard all constraints.We should somehow only limit "discard all constraints" to the case where there are multiple
ParamEnv
candidates and we're unable to choose, not if we have an applicableParamEnv
candidate which is ambiguous.The text was updated successfully, but these errors were encountered: