about 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-11 11:32:33 -0700
committerKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-01-14 00:30:03 -0700
commit6e969ea85eb8f5e504c1a0a06c0a63c515fadf3b (patch)
treed214b2b2e1b2eac7a597229c7107a318127495b2 /compiler/rustc_monomorphize/src
parentf29a334c90e29ffbe236f9abba9aa08bfda597c6 (diff)
downloadrust-6e969ea85eb8f5e504c1a0a06c0a63c515fadf3b.tar.gz
rust-6e969ea85eb8f5e504c1a0a06c0a63c515fadf3b.zip
fix various subst_identity vs skip_binder
Diffstat (limited to 'compiler/rustc_monomorphize/src')
-rw-r--r--compiler/rustc_monomorphize/src/collector.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs
index 3080248d508..ec1de305687 100644
--- a/compiler/rustc_monomorphize/src/collector.rs
+++ b/compiler/rustc_monomorphize/src/collector.rs
@@ -1351,9 +1351,9 @@ 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).map(ty::EarlyBinder::subst_identity)
-            {
+            if let Some(trait_ref) = tcx.impl_trait_ref(item.owner_id) {
+                let trait_ref = trait_ref.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);