Skip to content

Commit e71f6e1

Browse files
committed
lowering: move lower_field -> expr.rs
1 parent 94876c2 commit e71f6e1

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/librustc/hir/lowering.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3124,16 +3124,6 @@ impl<'a> LoweringContext<'a> {
31243124
}
31253125
}
31263126

3127-
fn lower_field(&mut self, f: &Field) -> hir::Field {
3128-
hir::Field {
3129-
hir_id: self.next_id(),
3130-
ident: f.ident,
3131-
expr: P(self.lower_expr(&f.expr)),
3132-
span: f.span,
3133-
is_shorthand: f.is_shorthand,
3134-
}
3135-
}
3136-
31373127
fn lower_mt(&mut self, mt: &MutTy, itctx: ImplTraitContext<'_>) -> hir::MutTy {
31383128
hir::MutTy {
31393129
ty: self.lower_ty(&mt.ty, itctx),

src/librustc/hir/lowering/expr.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,16 @@ impl LoweringContext<'_> {
818818
hir::ExprKind::InlineAsm(P(hir_asm), outputs, inputs)
819819
}
820820

821+
fn lower_field(&mut self, f: &Field) -> hir::Field {
822+
hir::Field {
823+
hir_id: self.next_id(),
824+
ident: f.ident,
825+
expr: P(self.lower_expr(&f.expr)),
826+
span: f.span,
827+
is_shorthand: f.is_shorthand,
828+
}
829+
}
830+
821831
fn lower_expr_yield(&mut self, span: Span, opt_expr: Option<&Expr>) -> hir::ExprKind {
822832
match self.generator_kind {
823833
Some(hir::GeneratorKind::Gen) => {},

0 commit comments

Comments
 (0)