Switch to StaticLoc for statics

This commit is contained in:
Aleksey Kladov 2019-11-24 15:13:56 +03:00
parent 982a32aca3
commit e0b06cb672
13 changed files with 65 additions and 28 deletions

View file

@ -88,7 +88,7 @@ impl HasSource for Const {
impl HasSource for Static {
type Ast = ast::StaticDef;
fn source(self, db: &impl DefDatabase) -> Source<ast::StaticDef> {
self.id.source(db)
self.id.lookup(db).source(db)
}
}
impl HasSource for Trait {