about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src/implied_bounds.rs
diff options
context:
space:
mode:
authorKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-01-10 14:57:22 -0700
committerKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-01-14 00:29:56 -0700
commitf29a334c90e29ffbe236f9abba9aa08bfda597c6 (patch)
tree58cf93d10ec51c3fe9c5bea7242ff8a498186ba3 /compiler/rustc_ty_utils/src/implied_bounds.rs
parentbe130b57d477069799158506d7e80145fdf71c73 (diff)
downloadrust-f29a334c90e29ffbe236f9abba9aa08bfda597c6.tar.gz
rust-f29a334c90e29ffbe236f9abba9aa08bfda597c6.zip
change impl_trait_ref query to return EarlyBinder; remove bound_impl_trait_ref query; add EarlyBinder to impl_trait_ref in metadata
Diffstat (limited to 'compiler/rustc_ty_utils/src/implied_bounds.rs')
-rw-r--r--compiler/rustc_ty_utils/src/implied_bounds.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/implied_bounds.rs b/compiler/rustc_ty_utils/src/implied_bounds.rs
index d890a04599b..7a9c1d8ffe7 100644
--- a/compiler/rustc_ty_utils/src/implied_bounds.rs
+++ b/compiler/rustc_ty_utils/src/implied_bounds.rs
@@ -22,7 +22,7 @@ fn assumed_wf_types(tcx: TyCtxt<'_>, def_id: DefId) -> &ty::List<Ty<'_>> {
             tcx.intern_type_list(&assumed_wf_types)
         }
         DefKind::Impl => {
-            match tcx.bound_impl_trait_ref(def_id).map(ty::EarlyBinder::subst_identity) {
+            match tcx.impl_trait_ref(def_id).map(ty::EarlyBinder::subst_identity) {
                 Some(trait_ref) => {
                     let types: Vec<_> = trait_ref.substs.types().collect();
                     tcx.intern_type_list(&types)