about summary refs log tree commit diff
path: root/compiler/rustc_infer/src
diff options
context:
space:
mode:
authorJack Huey <31162821+jackh726@users.noreply.github.com>2022-05-08 15:12:56 -0400
committerJack Huey <31162821+jackh726@users.noreply.github.com>2022-05-13 18:27:18 -0400
commitc92248ab9f2045c5a85700b59176bc850caaa3ef (patch)
tree13b6f51702152182d42c42fcab77a2ca7273f7f0 /compiler/rustc_infer/src
parent319575ae8c3f6ea5db1c850c8f4c786c8cc203fe (diff)
downloadrust-c92248ab9f2045c5a85700b59176bc850caaa3ef.tar.gz
rust-c92248ab9f2045c5a85700b59176bc850caaa3ef.zip
Add bound_type_of
Diffstat (limited to 'compiler/rustc_infer/src')
-rw-r--r--compiler/rustc_infer/src/infer/error_reporting/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/infer/error_reporting/mod.rs b/compiler/rustc_infer/src/infer/error_reporting/mod.rs
index 8fc41ba5365..4e6404035f4 100644
--- a/compiler/rustc_infer/src/infer/error_reporting/mod.rs
+++ b/compiler/rustc_infer/src/infer/error_reporting/mod.rs
@@ -968,7 +968,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
                     }
                 }
                 GenericArgKind::Type(ty) => {
-                    if EarlyBinder(self.tcx.type_of(def_id)).subst(self.tcx, substs) != ty {
+                    if self.tcx.bound_type_of(def_id).subst(self.tcx, substs) != ty {
                         break;
                     }
                 }