diff options
Diffstat (limited to 'crates/hir_def/src/item_tree.rs')
-rw-r--r-- | crates/hir_def/src/item_tree.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/hir_def/src/item_tree.rs b/crates/hir_def/src/item_tree.rs index b08167281..864fad170 100644 --- a/crates/hir_def/src/item_tree.rs +++ b/crates/hir_def/src/item_tree.rs | |||
@@ -94,6 +94,9 @@ impl ItemTree { | |||
94 | ast::MacroItems(items) => { | 94 | ast::MacroItems(items) => { |
95 | ctx.lower_module_items(&items) | 95 | ctx.lower_module_items(&items) |
96 | }, | 96 | }, |
97 | ast::MacroStmts(stmts) => { | ||
98 | ctx.lower_inner_items(stmts.syntax()) | ||
99 | }, | ||
97 | // Macros can expand to expressions. We return an empty item tree in this case, but | 100 | // Macros can expand to expressions. We return an empty item tree in this case, but |
98 | // still need to collect inner items. | 101 | // still need to collect inner items. |
99 | ast::Expr(e) => { | 102 | ast::Expr(e) => { |