Skip to content

Commit 2472851

Browse files
Merge #7384
7384: Remove unused field r=jonas-schievink a=jonas-schievink bors r+ Co-authored-by: Jonas Schievink <[email protected]>
2 parents 585816c + 8916b0c commit 2472851

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

crates/hir_def/src/item_tree/lower.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ pub(super) struct Ctx {
3737
file: HirFileId,
3838
source_ast_id_map: Arc<AstIdMap>,
3939
body_ctx: crate::body::LowerCtx,
40-
inner_items: Vec<ModItem>,
4140
forced_visibility: Option<RawVisibilityId>,
4241
}
4342

@@ -49,7 +48,6 @@ impl Ctx {
4948
file,
5049
source_ast_id_map: db.ast_id_map(file),
5150
body_ctx: crate::body::LowerCtx::new(db, file),
52-
inner_items: Vec::new(),
5351
forced_visibility: None,
5452
}
5553
}
@@ -73,8 +71,6 @@ impl Ctx {
7371
}
7472

7573
fn lower_mod_item(&mut self, item: &ast::Item, inner: bool) -> Option<ModItems> {
76-
assert!(inner || self.inner_items.is_empty());
77-
7874
// Collect inner items for 1-to-1-lowered items.
7975
match item {
8076
ast::Item::Struct(_)

0 commit comments

Comments
 (0)