diff options
| author | Waffle Maybe <waffle.lapkin@gmail.com> | 2024-05-31 00:46:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-31 00:46:07 +0200 |
| commit | 86afea97fdc3e4c1c8ad441bd68f7988f660aba0 (patch) | |
| tree | cc419c8d0099effaac98bc1080aae7f889c03f6d | |
| parent | 6f3df08aadf71e8d4bf7e49f5dc10dfa6f254cb4 (diff) | |
| download | rust-86afea97fdc3e4c1c8ad441bd68f7988f660aba0.tar.gz rust-86afea97fdc3e4c1c8ad441bd68f7988f660aba0.zip | |
Don't recompute `tail` in `lower_stmts`
| -rw-r--r-- | compiler/rustc_ast_lowering/src/block.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/block.rs b/compiler/rustc_ast_lowering/src/block.rs index eef6e8280af..e821a08bf18 100644 --- a/compiler/rustc_ast_lowering/src/block.rs +++ b/compiler/rustc_ast_lowering/src/block.rs @@ -76,7 +76,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { StmtKind::Empty => {} StmtKind::MacCall(..) => panic!("shouldn't exist here"), } - ast_stmts = &ast_stmts[1..]; + ast_stmts = tail; } (self.arena.alloc_from_iter(stmts), expr) } |
