aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/item_tree
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-04-01 19:35:21 +0100
committerJonas Schievink <[email protected]>2021-04-01 19:35:21 +0100
commit39d992ef559c9cd67551819a9d63ef52ef7b725f (patch)
tree49e1e59d00e46a8bb110d2b28d911c07d4a058f9 /crates/hir_def/src/item_tree
parentb00266b79f0e2c2a5e332b30f7e6aba83b5e6e5a (diff)
Intern Attr, MacroCall and Path components
Diffstat (limited to 'crates/hir_def/src/item_tree')
-rw-r--r--crates/hir_def/src/item_tree/lower.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_def/src/item_tree/lower.rs b/crates/hir_def/src/item_tree/lower.rs
index 23d3dea7b..5247379c5 100644
--- a/crates/hir_def/src/item_tree/lower.rs
+++ b/crates/hir_def/src/item_tree/lower.rs
@@ -606,7 +606,7 @@ impl Ctx {
606 } 606 }
607 607
608 fn lower_macro_call(&mut self, m: &ast::MacroCall) -> Option<FileItemTreeId<MacroCall>> { 608 fn lower_macro_call(&mut self, m: &ast::MacroCall) -> Option<FileItemTreeId<MacroCall>> {
609 let path = ModPath::from_src(m.path()?, &self.hygiene)?; 609 let path = Interned::new(ModPath::from_src(m.path()?, &self.hygiene)?);
610 let ast_id = self.source_ast_id_map.ast_id(m); 610 let ast_id = self.source_ast_id_map.ast_id(m);
611 let res = MacroCall { path, ast_id }; 611 let res = MacroCall { path, ast_id };
612 Some(id(self.data().macro_calls.alloc(res))) 612 Some(id(self.data().macro_calls.alloc(res)))