Skip to content

Commit c11e057

Browse files
authored
Rollup merge of rust-lang#125790 - WaffleLapkin:no-tail-recomputation-in-lower-stmts, r=lcnr
Don't recompute `tail` in `lower_stmts` Does not really matter, but this is slightly nicer. `@bors` rollup
2 parents ab55d42 + 86afea9 commit c11e057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_ast_lowering/src/block.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
7676
StmtKind::Empty => {}
7777
StmtKind::MacCall(..) => panic!("shouldn't exist here"),
7878
}
79-
ast_stmts = &ast_stmts[1..];
79+
ast_stmts = tail;
8080
}
8181
(self.arena.alloc_from_iter(stmts), expr)
8282
}

0 commit comments

Comments
 (0)