mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 01:17:27 +00:00
Resolve impl generic params
This commit is contained in:
parent
da7056245d
commit
2af067b391
1 changed files with 3 additions and 1 deletions
|
@ -106,7 +106,9 @@ impl ImplBlock {
|
|||
|
||||
pub fn resolver(&self, db: &impl HirDatabase) -> Resolver {
|
||||
let r = self.module().resolver(db);
|
||||
// TODO: add generics
|
||||
// add generic params, if present
|
||||
let p = self.generic_params(db);
|
||||
let r = if !p.params.is_empty() { r.push_generic_params_scope(p) } else { r };
|
||||
let r = r.push_impl_block_scope(self.clone());
|
||||
r
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue