Skip to content

Commit d6f5552

Browse files
authored
Unrolled build for rust-lang#118262
Rollup merge of rust-lang#118262 - spastorino:relate-iats-using-eq, r=compiler-errors Relate Inherent Associated Types using eq We should call `eq` instead of `sup` as we're relating `Ty` directly and not `Binder<TraitRef>`. This is part of rust-lang#118118 but unrelated to that PR. r? `@compiler-errors` `@lcnr`
2 parents fad6bb8 + 6713f29 commit d6f5552

File tree

1 file changed

+1
-4
lines changed
  • compiler/rustc_hir_analysis/src/astconv

1 file changed

+1
-4
lines changed

compiler/rustc_hir_analysis/src/astconv/mod.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1674,10 +1674,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
16741674
let impl_ty = ocx.normalize(&cause, param_env, impl_ty);
16751675

16761676
// Check that the self types can be related.
1677-
// FIXME(inherent_associated_types): Should we use `eq` here? Method probing uses
1678-
// `sup` for this situtation, too. What for? To constrain inference variables?
1679-
if ocx.sup(&ObligationCause::dummy(), param_env, impl_ty, self_ty).is_err()
1680-
{
1677+
if ocx.eq(&ObligationCause::dummy(), param_env, impl_ty, self_ty).is_err() {
16811678
return false;
16821679
}
16831680

0 commit comments

Comments
 (0)