summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src
diff options
context:
space:
mode:
authorKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-01-10 14:22:52 -0700
committerKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-01-14 00:23:32 -0700
commitbe130b57d477069799158506d7e80145fdf71c73 (patch)
tree341ffe12198905a74b3f0e7ec5d44d1caa06fc88 /compiler/rustc_monomorphize/src
parentef58baf8b8fecc5ca8b5e34921d33650186d4205 (diff)
downloadrust-be130b57d477069799158506d7e80145fdf71c73.tar.gz
rust-be130b57d477069799158506d7e80145fdf71c73.zip
change usages of impl_trait_ref to bound_impl_trait_ref
Diffstat (limited to 'compiler/rustc_monomorphize/src')
-rw-r--r--compiler/rustc_monomorphize/src/collector.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs
index b573df43250..070947410f3 100644
--- a/compiler/rustc_monomorphize/src/collector.rs
+++ b/compiler/rustc_monomorphize/src/collector.rs
@@ -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);