From 8ce15b02dea7152953775904fd937cced2422bc6 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Fri, 26 Mar 2021 03:52:35 +0800 Subject: Fix recursive macro statement expansion --- crates/hir_def/src/item_tree/lower.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'crates/hir_def/src/item_tree/lower.rs') diff --git a/crates/hir_def/src/item_tree/lower.rs b/crates/hir_def/src/item_tree/lower.rs index d3fe1ce1e..3f558edd8 100644 --- a/crates/hir_def/src/item_tree/lower.rs +++ b/crates/hir_def/src/item_tree/lower.rs @@ -87,14 +87,6 @@ impl Ctx { self.tree } - pub(super) fn lower_single_item(mut self, item: ast::Item) -> ItemTree { - self.tree.top_level = self - .lower_mod_item(&item, false) - .map(|item| item.0) - .unwrap_or_else(|| Default::default()); - self.tree - } - pub(super) fn lower_inner_items(mut self, within: &SyntaxNode) -> ItemTree { self.collect_inner_items(within); self.tree -- cgit v1.2.3