We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9613bc3 commit 823a7caCopy full SHA for 823a7ca
compiler/rustc_hir_analysis/src/astconv/mod.rs
@@ -1637,10 +1637,8 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
1637
let impl_ty = ocx.normalize(&cause, param_env, impl_ty);
1638
1639
// Check that the self types can be related.
1640
- // FIXME(inherent_associated_types): Should we use `eq` here? Method probing uses
1641
- // `sup` for this situtation, too. What for? To constrain inference variables?
1642
if ocx
1643
- .sup(&ObligationCause::dummy(), param_env, impl_ty, self_ty)
+ .eq(&ObligationCause::dummy(), param_env, impl_ty, self_ty)
1644
.is_err()
1645
{
1646
return false;
0 commit comments