diff options
| author | kadmin <julianknodt@gmail.com> | 2022-01-08 09:28:12 +0000 |
|---|---|---|
| committer | kadmin <julianknodt@gmail.com> | 2022-01-17 17:44:56 +0000 |
| commit | 67f56671d0384bdb2d92dddebfbf42510b16e0f7 (patch) | |
| tree | 40e044743da8fab20f86e317f65f1276e78343c5 /compiler/rustc_borrowck/src | |
| parent | fb57b7518d207caa99bdd99f4dab2a7d3902a83a (diff) | |
| download | rust-67f56671d0384bdb2d92dddebfbf42510b16e0f7.tar.gz rust-67f56671d0384bdb2d92dddebfbf42510b16e0f7.zip | |
Use Term in ProjectionPredicate
ProjectionPredicate should be able to handle both associated types and consts so this adds the first step of that. It mainly just pipes types all the way down, not entirely sure how to handle consts, but hopefully that'll come with time.
Diffstat (limited to 'compiler/rustc_borrowck/src')
| -rw-r--r-- | compiler/rustc_borrowck/src/diagnostics/region_name.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/region_name.rs b/compiler/rustc_borrowck/src/diagnostics/region_name.rs index 9aa58f05a8e..01cc72121c7 100644 --- a/compiler/rustc_borrowck/src/diagnostics/region_name.rs +++ b/compiler/rustc_borrowck/src/diagnostics/region_name.rs @@ -779,7 +779,10 @@ impl<'tcx> MirBorrowckCtxt<'_, 'tcx> { [ hir::TypeBinding { ident: Ident { name: sym::Output, .. }, - kind: hir::TypeBindingKind::Equality { ty }, + kind: + hir::TypeBindingKind::Equality { + term: hir::Term::Ty(ty), + }, .. }, ], |
