change impl_trait_ref query to return EarlyBinder; remove bound_impl_trait_ref query; add EarlyBinder to impl_trait_ref in metadata
This commit is contained in:
parent
be130b57d4
commit
f29a334c90
59 changed files with 108 additions and 127 deletions
|
@ -1351,9 +1351,8 @@ fn create_mono_items_for_default_impls<'tcx>(
|
|||
tcx.def_path_str(item.owner_id.to_def_id())
|
||||
);
|
||||
|
||||
if let Some(trait_ref) = tcx
|
||||
.bound_impl_trait_ref(item.owner_id.to_def_id())
|
||||
.map(ty::EarlyBinder::subst_identity)
|
||||
if let Some(trait_ref) =
|
||||
tcx.impl_trait_ref(item.owner_id).map(ty::EarlyBinder::subst_identity)
|
||||
{
|
||||
let param_env = ty::ParamEnv::reveal_all();
|
||||
let trait_ref = tcx.normalize_erasing_regions(param_env, trait_ref);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue