diff options
author | Florian Diebold <[email protected]> | 2021-03-21 16:40:14 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2021-03-21 17:01:14 +0000 |
commit | 1d5c4a77fb33cab7bf8f9d2edc6dd26b09ef65f3 (patch) | |
tree | 9cc37c708ec3c2df8adbc1e96204c7a7e2e3ca65 /crates/hir_ty/src/traits/chalk | |
parent | 590c41635952e19c3caae525a827499dbd360049 (diff) |
Use QuantifiedWhereClause in generic_predicates as well
Still far too much binder skipping going on; I find it hard to imagine
this is all correct, but the tests pass.
Diffstat (limited to 'crates/hir_ty/src/traits/chalk')
-rw-r--r-- | crates/hir_ty/src/traits/chalk/mapping.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/traits/chalk/mapping.rs b/crates/hir_ty/src/traits/chalk/mapping.rs index 5b9c7e831..7209dd14e 100644 --- a/crates/hir_ty/src/traits/chalk/mapping.rs +++ b/crates/hir_ty/src/traits/chalk/mapping.rs | |||
@@ -537,7 +537,7 @@ pub(super) fn convert_where_clauses( | |||
537 | let generic_predicates = db.generic_predicates(def); | 537 | let generic_predicates = db.generic_predicates(def); |
538 | let mut result = Vec::with_capacity(generic_predicates.len()); | 538 | let mut result = Vec::with_capacity(generic_predicates.len()); |
539 | for pred in generic_predicates.iter() { | 539 | for pred in generic_predicates.iter() { |
540 | result.push(crate::Binders::wrap_empty(pred.clone().subst(substs)).to_chalk(db)); | 540 | result.push(pred.clone().subst(substs).to_chalk(db)); |
541 | } | 541 | } |
542 | result | 542 | result |
543 | } | 543 | } |