Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/declarative.rs')
-rw-r--r--crates/hir-expand/src/declarative.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/hir-expand/src/declarative.rs b/crates/hir-expand/src/declarative.rs
index 107014164e..5ba30f1256 100644
--- a/crates/hir-expand/src/declarative.rs
+++ b/crates/hir-expand/src/declarative.rs
@@ -87,7 +87,8 @@ impl DeclarativeMacroExpander {
def_crate: Crate,
id: AstId<ast::Macro>,
) -> DeclarativeMacroExpander {
- let (root, map) = crate::db::parse_with_map(db, id.file_id);
+ let (root, map) = id.file_id.parse_with_map(db);
+
let root = root.syntax_node();
let transparency = |node: ast::AnyHasAttrs| {