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