Move structs to new loc

This commit is contained in:
Aleksey Kladov 2019-12-12 14:58:04 +01:00
parent 63c192b34a
commit f135a8ea55
14 changed files with 66 additions and 30 deletions

View file

@ -51,7 +51,7 @@ impl HasSource for StructField {
impl HasSource for Struct {
type Ast = ast::StructDef;
fn source(self, db: &impl DefDatabase) -> InFile<ast::StructDef> {
self.id.source(db)
self.id.lookup(db).source(db)
}
}
impl HasSource for Union {