diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-02-03 17:15:21 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-03 17:15:21 +0000 |
commit | a6ccd50ece3858f8efa0689064c1896774594006 (patch) | |
tree | b955d7f08c130904fa4859bc8f1bb5079506818f | |
parent | 6817f1ff99123af3fdef0657bd25dbc507065210 (diff) | |
parent | eda1cb7ceb21b0a8b55a30b69b6f44a7bed096ff (diff) |
Merge #7545
7545: Add a FIXME to ItemTree r=jonas-schievink a=jonas-schievink
bors r+
Co-authored-by: Jonas Schievink <[email protected]>
-rw-r--r-- | crates/hir_def/src/item_tree/lower.rs | 1 |
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) { |