aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src/infer
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-06 16:35:05 +0000
committerAleksey Kladov <[email protected]>2019-12-07 12:05:56 +0000
commit30fefcc08cc0c670ce541476491238d258ca55c1 (patch)
tree998e7ddf231d0da32d08641fea17c1662f26f0e1 /crates/ra_hir_ty/src/infer
parent35fc983dd9e904ad4961b9c10be3397bad33da0c (diff)
Store GenericParams in arena
Diffstat (limited to 'crates/ra_hir_ty/src/infer')
-rw-r--r--crates/ra_hir_ty/src/infer/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_ty/src/infer/expr.rs b/crates/ra_hir_ty/src/infer/expr.rs
index b8df27706..0c3428999 100644
--- a/crates/ra_hir_ty/src/infer/expr.rs
+++ b/crates/ra_hir_ty/src/infer/expr.rs
@@ -662,7 +662,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
662 let mut substs = Vec::with_capacity(parent_param_count + param_count); 662 let mut substs = Vec::with_capacity(parent_param_count + param_count);
663 // Parent arguments are unknown, except for the receiver type 663 // Parent arguments are unknown, except for the receiver type
664 if let Some(parent_generics) = def_generics.and_then(|p| p.parent_params.clone()) { 664 if let Some(parent_generics) = def_generics.and_then(|p| p.parent_params.clone()) {
665 for param in &parent_generics.params { 665 for (_id, param) in parent_generics.params.iter() {
666 if param.name == name::SELF_TYPE { 666 if param.name == name::SELF_TYPE {
667 substs.push(receiver_ty.clone()); 667 substs.push(receiver_ty.clone());
668 } else { 668 } else {