aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_ty/src')
-rw-r--r--crates/ra_hir_ty/src/infer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_ty/src/infer.rs b/crates/ra_hir_ty/src/infer.rs
index 14bfdde3d..98baeed6f 100644
--- a/crates/ra_hir_ty/src/infer.rs
+++ b/crates/ra_hir_ty/src/infer.rs
@@ -375,7 +375,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
375 match assoc_ty { 375 match assoc_ty {
376 Some(res_assoc_ty) => { 376 Some(res_assoc_ty) => {
377 let ty = self.table.new_type_var(); 377 let ty = self.table.new_type_var();
378 let mut builder = Substs::builder(1 + params.len()).push(inner_ty); 378 let mut builder = Substs::build_for_def(self.db, res_assoc_ty).push(inner_ty);
379 for ty in params { 379 for ty in params {
380 builder = builder.push(ty.clone()); 380 builder = builder.push(ty.clone());
381 } 381 }