diff options
author | Aleksey Kladov <[email protected]> | 2019-12-06 16:35:05 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-07 12:05:56 +0000 |
commit | 30fefcc08cc0c670ce541476491238d258ca55c1 (patch) | |
tree | 998e7ddf231d0da32d08641fea17c1662f26f0e1 /crates/ra_hir_ty/src/infer | |
parent | 35fc983dd9e904ad4961b9c10be3397bad33da0c (diff) |
Store GenericParams in arena
Diffstat (limited to 'crates/ra_hir_ty/src/infer')
-rw-r--r-- | crates/ra_hir_ty/src/infer/expr.rs | 2 |
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 { |