about summary refs log tree commit diff
path: root/compiler/rustc_infer/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_infer/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_infer/src')
-rw-r--r--compiler/rustc_infer/src/infer/error_reporting/note.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/infer/error_reporting/note.rs b/compiler/rustc_infer/src/infer/error_reporting/note.rs
index 7504ed094a3..2670eb0d145 100644
--- a/compiler/rustc_infer/src/infer/error_reporting/note.rs
+++ b/compiler/rustc_infer/src/infer/error_reporting/note.rs
@@ -317,9 +317,10 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
             self.tcx.associated_item(impl_item_def_id).impl_container(self.tcx) else { return; };
         let Some(trait_ref) = self
             .tcx
-            .impl_trait_ref(impl_def_id)
+            .bound_impl_trait_ref(impl_def_id)
             else { return; };
         let trait_substs = trait_ref
+            .subst_identity()
             // Replace the explicit self type with `Self` for better suggestion rendering
             .with_self_ty(self.tcx, self.tcx.mk_ty_param(0, kw::SelfUpper))
             .substs;