File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
compiler/rustc_hir_analysis/src/check Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -298,14 +298,9 @@ fn compare_method_predicate_entailment<'tcx>(
298298 // compatible with that of the trait method. We do this by
299299 // checking that `impl_fty <: trait_fty`.
300300 //
301- // FIXME. Unfortunately, this doesn't quite work right now because
302- // associated type normalization is not integrated into subtype
303- // checks. For the comparison to be valid, we need to
304- // normalize the associated types in the impl/trait methods
305- // first. However, because function types bind regions, just
306- // calling `FnCtxt::normalize` would have no effect on
307- // any associated types appearing in the fn arguments or return
308- // type.
301+ // FIXME: We manually instantiate the trait method here as we need
302+ // to manually compute its implied bounds. Otherwise this could just
303+ // be `ocx.sub(impl_sig, trait_sig)`.
309304
310305 let mut wf_tys = FxIndexSet :: default ( ) ;
311306
You can’t perform that action at this time.
0 commit comments