This commit is contained in:
Aleksey Kladov 2019-01-25 10:29:00 +03:00
parent ed27bd8d77
commit 74beb5bfcb
5 changed files with 20 additions and 14 deletions

View file

@ -165,7 +165,7 @@ impl Module {
/// Returns a `ModuleScope`: a set of items, visible in this module.
pub fn scope(&self, db: &impl HirDatabase) -> ModuleScope {
self.scope_impl(db)
db.item_map(self.krate)[self.module_id].clone()
}
pub fn resolve_path(&self, db: &impl HirDatabase, path: &Path) -> PerNs<ModuleDef> {