Skip to content

Commit 6105dbf

Browse files
Merge #7327
7327: Remove `item_tree::Expr` r=jonas-schievink a=jonas-schievink It's empty and unused bors r+ Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2 parents c72d3a7 + 6f4f285 commit 6105dbf

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

crates/hir_def/src/item_tree.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ impl ItemTree {
145145
macro_calls,
146146
macro_rules,
147147
macro_defs,
148-
exprs,
149148
vis,
150149
generics,
151150
} = &mut **data;
@@ -167,7 +166,6 @@ impl ItemTree {
167166
macro_calls.shrink_to_fit();
168167
macro_rules.shrink_to_fit();
169168
macro_defs.shrink_to_fit();
170-
exprs.shrink_to_fit();
171169

172170
vis.arena.shrink_to_fit();
173171
generics.arena.shrink_to_fit();
@@ -296,7 +294,6 @@ struct ItemTreeData {
296294
macro_calls: Arena<MacroCall>,
297295
macro_rules: Arena<MacroRules>,
298296
macro_defs: Arena<MacroDef>,
299-
exprs: Arena<Expr>,
300297

301298
vis: ItemVisibilities,
302299
generics: GenericParamsStorage,
@@ -461,7 +458,7 @@ macro_rules! impl_index {
461458
};
462459
}
463460

464-
impl_index!(fields: Field, variants: Variant, exprs: Expr);
461+
impl_index!(fields: Field, variants: Variant);
465462

466463
impl Index<RawVisibilityId> for ItemTree {
467464
type Output = RawVisibility;
@@ -664,11 +661,6 @@ pub struct MacroDef {
664661
pub ast_id: FileAstId<ast::MacroDef>,
665662
}
666663

667-
// NB: There's no `FileAstId` for `Expr`. The only case where this would be useful is for array
668-
// lengths, but we don't do much with them yet.
669-
#[derive(Debug, Clone, Eq, PartialEq)]
670-
pub struct Expr;
671-
672664
macro_rules! impl_froms {
673665
($e:ident { $($v:ident ($t:ty)),* $(,)? }) => {
674666
$(

0 commit comments

Comments
 (0)