fix up subst_identity vs skip_binder; add some FIXMEs as identified in review
This commit is contained in:
parent
ab40ba2fb1
commit
a969c194d8
10 changed files with 36 additions and 44 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue