mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Store GenericParams in arena
This commit is contained in:
parent
35fc983dd9
commit
30fefcc08c
4 changed files with 25 additions and 14 deletions
|
@ -662,7 +662,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
|
|||
let mut substs = Vec::with_capacity(parent_param_count + param_count);
|
||||
// Parent arguments are unknown, except for the receiver type
|
||||
if let Some(parent_generics) = def_generics.and_then(|p| p.parent_params.clone()) {
|
||||
for param in &parent_generics.params {
|
||||
for (_id, param) in parent_generics.params.iter() {
|
||||
if param.name == name::SELF_TYPE {
|
||||
substs.push(receiver_ty.clone());
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue