change usages of impl_trait_ref to bound_impl_trait_ref
This commit is contained in:
parent
ef58baf8b8
commit
be130b57d4
47 changed files with 134 additions and 100 deletions
|
@ -1351,7 +1351,10 @@ fn create_mono_items_for_default_impls<'tcx>(
|
|||
tcx.def_path_str(item.owner_id.to_def_id())
|
||||
);
|
||||
|
||||
if let Some(trait_ref) = tcx.impl_trait_ref(item.owner_id) {
|
||||
if let Some(trait_ref) = tcx
|
||||
.bound_impl_trait_ref(item.owner_id.to_def_id())
|
||||
.map(ty::EarlyBinder::subst_identity)
|
||||
{
|
||||
let param_env = ty::ParamEnv::reveal_all();
|
||||
let trait_ref = tcx.normalize_erasing_regions(param_env, trait_ref);
|
||||
let overridden_methods = tcx.impl_item_implementor_ids(item.owner_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue