Skip to content

Commit 86afea9

Browse files
authored
Don't recompute tail in lower_stmts
1 parent 6f3df08 commit 86afea9

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)