aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_hir/src/code_model_api.rs2
-rw-r--r--crates/ra_hir/src/code_model_impl/module.rs5
2 files changed, 1 insertions, 6 deletions
diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs
index 6739627b4..e469c782e 100644
--- a/crates/ra_hir/src/code_model_api.rs
+++ b/crates/ra_hir/src/code_model_api.rs
@@ -169,7 +169,7 @@ impl Module {
169 } 169 }
170 170
171 pub fn resolve_path(&self, db: &impl HirDatabase, path: &Path) -> PerNs<ModuleDef> { 171 pub fn resolve_path(&self, db: &impl HirDatabase, path: &Path) -> PerNs<ModuleDef> {
172 self.resolve_path_impl(db, path) 172 db.item_map(self.krate).resolve_path(db, *self, path)
173 } 173 }
174 174
175 pub fn problems(&self, db: &impl HirDatabase) -> Vec<(TreeArc<SyntaxNode>, Problem)> { 175 pub fn problems(&self, db: &impl HirDatabase) -> Vec<(TreeArc<SyntaxNode>, Problem)> {
diff --git a/crates/ra_hir/src/code_model_impl/module.rs b/crates/ra_hir/src/code_model_impl/module.rs
index a5b190384..bf0e212ca 100644
--- a/crates/ra_hir/src/code_model_impl/module.rs
+++ b/crates/ra_hir/src/code_model_impl/module.rs
@@ -96,11 +96,6 @@ impl Module {
96 item_map.per_module[&self.module_id].clone() 96 item_map.per_module[&self.module_id].clone()
97 } 97 }
98 98
99 pub(crate) fn resolve_path_impl(&self, db: &impl HirDatabase, path: &Path) -> PerNs<ModuleDef> {
100 let item_map = db.item_map(self.krate);
101 item_map.resolve_path(db, *self, path)
102 }
103
104 pub(crate) fn problems_impl( 99 pub(crate) fn problems_impl(
105 &self, 100 &self,
106 db: &impl HirDatabase, 101 db: &impl HirDatabase,