diff options
author | Florian Diebold <[email protected]> | 2019-02-16 20:21:36 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-02-16 22:06:41 +0000 |
commit | 2af067b391bf37950cf1d3f1af863d931b385af5 (patch) | |
tree | 18d3174869ea831f7a2a975a78bde4d162a7b8c9 /crates/ra_hir | |
parent | da7056245d9b59a4b3af7266dd271bab58cb6527 (diff) |
Resolve impl generic params
Diffstat (limited to 'crates/ra_hir')
-rw-r--r-- | crates/ra_hir/src/impl_block.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_hir/src/impl_block.rs b/crates/ra_hir/src/impl_block.rs index 7d862882d..7ecf8c368 100644 --- a/crates/ra_hir/src/impl_block.rs +++ b/crates/ra_hir/src/impl_block.rs | |||
@@ -106,7 +106,9 @@ impl ImplBlock { | |||
106 | 106 | ||
107 | pub fn resolver(&self, db: &impl HirDatabase) -> Resolver { | 107 | pub fn resolver(&self, db: &impl HirDatabase) -> Resolver { |
108 | let r = self.module().resolver(db); | 108 | let r = self.module().resolver(db); |
109 | // TODO: add generics | 109 | // add generic params, if present |
110 | let p = self.generic_params(db); | ||
111 | let r = if !p.params.is_empty() { r.push_generic_params_scope(p) } else { r }; | ||
110 | let r = r.push_impl_block_scope(self.clone()); | 112 | let r = r.push_impl_block_scope(self.clone()); |
111 | r | 113 | r |
112 | } | 114 | } |