change fn_sig query to use EarlyBinder; remove bound_fn_sig query; add EarlyBinder to fn_sig in metadata
This commit is contained in:
parent
e982971ff2
commit
c2414dfaa4
80 changed files with 142 additions and 152 deletions
|
@ -459,7 +459,7 @@ impl<'tcx> Instance<'tcx> {
|
|||
substs: SubstsRef<'tcx>,
|
||||
) -> Option<Instance<'tcx>> {
|
||||
debug!("resolve_for_vtable(def_id={:?}, substs={:?})", def_id, substs);
|
||||
let fn_sig = tcx.bound_fn_sig(def_id).subst_identity();
|
||||
let fn_sig = tcx.fn_sig(def_id).subst_identity();
|
||||
let is_vtable_shim = !fn_sig.inputs().skip_binder().is_empty()
|
||||
&& fn_sig.input(0).skip_binder().is_param(0)
|
||||
&& tcx.generics_of(def_id).has_self;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue