mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Add Container enum to handle both kinds of container (impl/trait)
This commit is contained in:
parent
7650a44640
commit
4497e1d3ea
4 changed files with 58 additions and 17 deletions
|
@ -96,7 +96,7 @@ impl ImplBlock {
|
|||
db.generic_params((*self).into())
|
||||
}
|
||||
|
||||
pub(crate) fn resolver(&self, db: &impl HirDatabase) -> Resolver {
|
||||
pub(crate) fn resolver(&self, db: &impl DefDatabase) -> Resolver {
|
||||
let r = self.module().resolver(db);
|
||||
// add generic params, if present
|
||||
let p = self.generic_params(db);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue