aboutsummaryrefslogtreecommitdiff
path: root/crates/assists
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2020-12-11 12:49:32 +0000
committerLukas Wirth <[email protected]>2020-12-11 23:56:52 +0000
commit11f86641829273e2b2b7023c2028bb475fce58ee (patch)
tree8633b96c3f812412ea6c19acb1b6a770292d4697 /crates/assists
parent41321d96789ed918eebda02ada76758765d19d16 (diff)
Add Lifetimes to the HIR
Diffstat (limited to 'crates/assists')
-rw-r--r--crates/assists/src/ast_transform.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/assists/src/ast_transform.rs b/crates/assists/src/ast_transform.rs
index 66e4634b1..da94e9987 100644
--- a/crates/assists/src/ast_transform.rs
+++ b/crates/assists/src/ast_transform.rs
@@ -89,7 +89,7 @@ impl<'a> SubstituteTypeParams<'a> {
89 let substs = get_syntactic_substs(impl_def).unwrap_or_default(); 89 let substs = get_syntactic_substs(impl_def).unwrap_or_default();
90 let generic_def: hir::GenericDef = trait_.into(); 90 let generic_def: hir::GenericDef = trait_.into();
91 let substs_by_param: FxHashMap<_, _> = generic_def 91 let substs_by_param: FxHashMap<_, _> = generic_def
92 .params(source_scope.db) 92 .type_params(source_scope.db)
93 .into_iter() 93 .into_iter()
94 // this is a trait impl, so we need to skip the first type parameter -- this is a bit hacky 94 // this is a trait impl, so we need to skip the first type parameter -- this is a bit hacky
95 .skip(1) 95 .skip(1)