Collect field data for structs/enum variants

This commit is contained in:
Florian Diebold
2018-12-25 13:31:30 +01:00
parent 4cb7b0f2af
commit 07a7285965
5 changed files with 87 additions and 12 deletions

View File

@@ -46,8 +46,7 @@ impl Function {
}
pub fn module(&self, db: &impl HirDatabase) -> Cancelable<Module> {
let loc = self.fn_id.0.loc(db);
Module::new(db, loc.source_root_id, loc.module_id)
self.fn_id.0.module(db)
}
}