Add Container enum to handle both kinds of container (impl/trait)

This commit is contained in:
Florian Diebold 2019-04-14 11:15:11 +02:00
parent 7650a44640
commit 4497e1d3ea
4 changed files with 58 additions and 17 deletions

View file

@ -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);