1
Fork 0

fix up subst_identity vs skip_binder; add some FIXMEs as identified in review

This commit is contained in:
Kyle Matsuda 2023-01-19 12:52:52 -07:00
parent ab40ba2fb1
commit a969c194d8
10 changed files with 36 additions and 44 deletions

View file

@ -1136,7 +1136,9 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
&& let self_ty = infcx.replace_bound_vars_with_fresh_vars(
fn_call_span,
LateBoundRegionConversionTime::FnCall,
tcx.fn_sig(method_did).subst_identity().input(0),
// FIXME: should use `subst` with the method substs.
// Probably need to add `method_substs` to `CallKind`
tcx.fn_sig(method_did).skip_binder().input(0),
)
&& infcx.can_eq(self.param_env, ty, self_ty).is_ok()
{