remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata
This commit is contained in:
parent
d822b97a27
commit
c183110cc2
164 changed files with 325 additions and 380 deletions
|
@ -242,7 +242,7 @@ fn drop_tys_helper<'tcx>(
|
|||
Ok(Vec::new())
|
||||
} else {
|
||||
let field_tys = adt_def.all_fields().map(|field| {
|
||||
let r = tcx.bound_type_of(field.did).subst(tcx, substs);
|
||||
let r = tcx.type_of(field.did).subst(tcx, substs);
|
||||
debug!("drop_tys_helper: Subst into {:?} with {:?} gettng {:?}", field, substs, r);
|
||||
r
|
||||
});
|
||||
|
@ -297,7 +297,7 @@ fn adt_drop_tys<'tcx>(
|
|||
// `tcx.type_of(def_id)` identical to `tcx.make_adt(def, identity_substs)`
|
||||
drop_tys_helper(
|
||||
tcx,
|
||||
tcx.bound_type_of(def_id).subst_identity(),
|
||||
tcx.type_of(def_id).subst_identity(),
|
||||
tcx.param_env(def_id),
|
||||
adt_has_dtor,
|
||||
false,
|
||||
|
@ -314,7 +314,7 @@ fn adt_significant_drop_tys(
|
|||
) -> Result<&ty::List<Ty<'_>>, AlwaysRequiresDrop> {
|
||||
drop_tys_helper(
|
||||
tcx,
|
||||
tcx.bound_type_of(def_id).subst_identity(), // identical to `tcx.make_adt(def, identity_substs)`
|
||||
tcx.type_of(def_id).subst_identity(), // identical to `tcx.make_adt(def, identity_substs)`
|
||||
tcx.param_env(def_id),
|
||||
adt_consider_insignificant_dtor(tcx),
|
||||
true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue