diff options
author | Edwin Cheng <[email protected]> | 2019-12-19 14:28:52 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-12-19 14:28:52 +0000 |
commit | b61ad6a96430f82e9724c1831d7402705145750e (patch) | |
tree | ec69680e7dbe161e22cdff1fd24ec6d503acfca4 /crates/ra_hir_ty | |
parent | dddee23f43a0e1939124a607ba534e69a810843a (diff) |
Use build_for_def
Diffstat (limited to 'crates/ra_hir_ty')
-rw-r--r-- | crates/ra_hir_ty/src/infer.rs | 2 |
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 | } |