Skip to content

Commit 5771bdb

Browse files
committed
Fix lowering of hir statements
1 parent ea0b13c commit 5771bdb

File tree

1 file changed

+0
-6
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+0
-6
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,8 +2418,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
24182418
let kind = match s.kind {
24192419
StmtKind::Local(ref l) => {
24202420
let l = self.lower_local(l);
2421-
let hir_id = self.lower_node_id(s.id());
2422-
self.alias_attrs(hir_id, l.hir_id);
24232421
return smallvec![hir::Stmt {
24242422
kind: hir::StmtKind::Local(self.arena.alloc(l)),
24252423
span: s.span,
@@ -2436,14 +2434,10 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
24362434
}
24372435
StmtKind::Expr(ref e) => {
24382436
let e = self.lower_expr(e);
2439-
let hir_id = self.lower_node_id(s.id());
2440-
self.alias_attrs(hir_id, e.hir_id);
24412437
hir::StmtKind::Expr(e)
24422438
}
24432439
StmtKind::Semi(ref e) => {
24442440
let e = self.lower_expr(e);
2445-
let hir_id = self.lower_node_id(s.id());
2446-
self.alias_attrs(hir_id, e.hir_id);
24472441
hir::StmtKind::Semi(e)
24482442
}
24492443
StmtKind::Empty { id: _ } => return smallvec![],

0 commit comments

Comments
 (0)