mirror of https://github.com/rust-lang/rust.git
Don't recompute `tail` in `lower_stmts`
This commit is contained in:
parent
6f3df08aad
commit
86afea97fd
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue