aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r--crates/ra_hir_def/src/body.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/ra_hir_def/src/body.rs b/crates/ra_hir_def/src/body.rs
index ac8f8261b..269501221 100644
--- a/crates/ra_hir_def/src/body.rs
+++ b/crates/ra_hir_def/src/body.rs
@@ -26,11 +26,7 @@ impl MacroResolver {
26 MacroResolver { crate_def_map: db.crate_def_map(module.krate), module } 26 MacroResolver { crate_def_map: db.crate_def_map(module.krate), module }
27 } 27 }
28 28
29 pub(crate) fn resolve_path_as_macro( 29 fn resolve_path_as_macro(&self, db: &impl DefDatabase2, path: &Path) -> Option<MacroDefId> {
30 &self,
31 db: &impl DefDatabase2,
32 path: &Path,
33 ) -> Option<MacroDefId> {
34 self.crate_def_map.resolve_path(db, self.module.module_id, path).0.get_macros() 30 self.crate_def_map.resolve_path(db, self.module.module_id, path).0.get_macros()
35 } 31 }
36} 32}