about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/deref_into_dyn_supertrait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_lint/src/deref_into_dyn_supertrait.rs')
-rw-r--r--compiler/rustc_lint/src/deref_into_dyn_supertrait.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/deref_into_dyn_supertrait.rs b/compiler/rustc_lint/src/deref_into_dyn_supertrait.rs
index d26d4f4e8c4..65a686857e5 100644
--- a/compiler/rustc_lint/src/deref_into_dyn_supertrait.rs
+++ b/compiler/rustc_lint/src/deref_into_dyn_supertrait.rs
@@ -59,7 +59,7 @@ impl<'tcx> LateLintPass<'tcx> for DerefIntoDynSupertrait {
         // `Deref` is being implemented for `t`
         if let hir::ItemKind::Impl(impl_) = item.kind
             && let Some(trait_) = &impl_.of_trait
-            && let t = cx.tcx.bound_type_of(item.owner_id).subst_identity()
+            && let t = cx.tcx.type_of(item.owner_id).subst_identity()
             && let opt_did @ Some(did) = trait_.trait_def_id()
             && opt_did == cx.tcx.lang_items().deref_trait()
             // `t` is `dyn t_principal`