From 8916b0c6cb6f63d65ca29110b1fe9abb5daf8960 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 21 Jan 2021 21:12:26 +0100 Subject: Remove unused field --- crates/hir_def/src/item_tree/lower.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/hir_def/src/item_tree/lower.rs b/crates/hir_def/src/item_tree/lower.rs index 61cbbbc8f..ce470fc3b 100644 --- a/crates/hir_def/src/item_tree/lower.rs +++ b/crates/hir_def/src/item_tree/lower.rs @@ -37,7 +37,6 @@ pub(super) struct Ctx { file: HirFileId, source_ast_id_map: Arc, body_ctx: crate::body::LowerCtx, - inner_items: Vec, forced_visibility: Option, } @@ -49,7 +48,6 @@ impl Ctx { file, source_ast_id_map: db.ast_id_map(file), body_ctx: crate::body::LowerCtx::new(db, file), - inner_items: Vec::new(), forced_visibility: None, } } @@ -73,8 +71,6 @@ impl Ctx { } fn lower_mod_item(&mut self, item: &ast::Item, inner: bool) -> Option { - assert!(inner || self.inner_items.is_empty()); - // Collect inner items for 1-to-1-lowered items. match item { ast::Item::Struct(_) -- cgit v1.2.3