aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/item_tree.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_def/src/item_tree.rs')
-rw-r--r--crates/hir_def/src/item_tree.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/hir_def/src/item_tree.rs b/crates/hir_def/src/item_tree.rs
index fed285505..16a94a058 100644
--- a/crates/hir_def/src/item_tree.rs
+++ b/crates/hir_def/src/item_tree.rs
@@ -104,10 +104,10 @@ impl ItemTree {
104 // items and expanded during block DefMap computation 104 // items and expanded during block DefMap computation
105 return Default::default(); 105 return Default::default();
106 }, 106 },
107 ast::Type(_ty) => { 107 ast::Type(ty) => {
108 // FIXME: This occurs because macros in type position are treated as inner 108 // Types can contain inner items. We return an empty item tree in this case, but
109 // items and expanded during block DefMap computation 109 // still need to collect inner items.
110 return Default::default(); 110 ctx.lower_inner_items(ty.syntax())
111 }, 111 },
112 ast::Expr(e) => { 112 ast::Expr(e) => {
113 // Macros can expand to expressions. We return an empty item tree in this case, but 113 // Macros can expand to expressions. We return an empty item tree in this case, but