diff options
| author | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2022-05-08 15:12:56 -0400 |
|---|---|---|
| committer | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2022-05-13 18:27:18 -0400 |
| commit | c92248ab9f2045c5a85700b59176bc850caaa3ef (patch) | |
| tree | 13b6f51702152182d42c42fcab77a2ca7273f7f0 /compiler/rustc_infer/src | |
| parent | 319575ae8c3f6ea5db1c850c8f4c786c8cc203fe (diff) | |
| download | rust-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.rs | 2 |
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; } } |
