aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/data.rs
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-01-21 17:05:52 +0000
committerJonas Schievink <[email protected]>2021-01-21 17:05:52 +0000
commitcdb0e25aaa8407caca878cfd0e92d46bb50b6da1 (patch)
tree625dde24f7b862a4810d8cc61ea529cbe5383f1f /crates/hir_def/src/data.rs
parentbbc6298600d7d91d8473ba8153ebde7b3a7768e5 (diff)
Make use of `block_def_map` in body lowering
Removes the `local_scope` hack from `Expander` in favor of tracking the `DefMap` in use during body lowering
Diffstat (limited to 'crates/hir_def/src/data.rs')
-rw-r--r--crates/hir_def/src/data.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_def/src/data.rs b/crates/hir_def/src/data.rs
index e7b7724f7..c2b0dc007 100644
--- a/crates/hir_def/src/data.rs
+++ b/crates/hir_def/src/data.rs
@@ -262,7 +262,7 @@ fn collect_items(
262 let root = db.parse_or_expand(file_id).unwrap(); 262 let root = db.parse_or_expand(file_id).unwrap();
263 let call = ast_id_map.get(call.ast_id).to_node(&root); 263 let call = ast_id_map.get(call.ast_id).to_node(&root);
264 264
265 if let Some((mark, mac)) = expander.enter_expand(db, None, call).value { 265 if let Some((mark, mac)) = expander.enter_expand(db, call).value {
266 let src: InFile<ast::MacroItems> = expander.to_source(mac); 266 let src: InFile<ast::MacroItems> = expander.to_source(mac);
267 let item_tree = db.item_tree(src.file_id); 267 let item_tree = db.item_tree(src.file_id);
268 let iter = 268 let iter =