aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-02-03 17:14:39 +0000
committerJonas Schievink <[email protected]>2021-02-03 17:14:39 +0000
commiteda1cb7ceb21b0a8b55a30b69b6f44a7bed096ff (patch)
treeb955d7f08c130904fa4859bc8f1bb5079506818f /crates
parent6817f1ff99123af3fdef0657bd25dbc507065210 (diff)
Add a FIXME to ItemTree
Diffstat (limited to 'crates')
-rw-r--r--crates/hir_def/src/item_tree/lower.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/hir_def/src/item_tree/lower.rs b/crates/hir_def/src/item_tree/lower.rs
index acc001add..de2177933 100644
--- a/crates/hir_def/src/item_tree/lower.rs
+++ b/crates/hir_def/src/item_tree/lower.rs
@@ -183,6 +183,7 @@ impl Ctx {
183 block_stack.push(self.source_ast_id_map.ast_id(&block)); 183 block_stack.push(self.source_ast_id_map.ast_id(&block));
184 }, 184 },
185 ast::Item(item) => { 185 ast::Item(item) => {
186 // FIXME: This triggers for macro calls in expression position
186 let mod_items = self.lower_mod_item(&item, true); 187 let mod_items = self.lower_mod_item(&item, true);
187 let current_block = block_stack.last(); 188 let current_block = block_stack.last();
188 if let (Some(mod_items), Some(block)) = (mod_items, current_block) { 189 if let (Some(mod_items), Some(block)) = (mod_items, current_block) {