Rollup merge of #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
This commit is contained in:
commit
c11e057989
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
||||||
StmtKind::Empty => {}
|
StmtKind::Empty => {}
|
||||||
StmtKind::MacCall(..) => panic!("shouldn't exist here"),
|
StmtKind::MacCall(..) => panic!("shouldn't exist here"),
|
||||||
}
|
}
|
||||||
ast_stmts = &ast_stmts[1..];
|
ast_stmts = tail;
|
||||||
}
|
}
|
||||||
(self.arena.alloc_from_iter(stmts), expr)
|
(self.arena.alloc_from_iter(stmts), expr)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue