diff options
| author | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-01-10 14:22:52 -0700 |
|---|---|---|
| committer | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-01-14 00:23:32 -0700 |
| commit | be130b57d477069799158506d7e80145fdf71c73 (patch) | |
| tree | 341ffe12198905a74b3f0e7ec5d44d1caa06fc88 /compiler/rustc_monomorphize/src | |
| parent | ef58baf8b8fecc5ca8b5e34921d33650186d4205 (diff) | |
| download | rust-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.rs | 5 |
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); |
