Don't recompute tail
in lower_stmts
This commit is contained in:
parent
6f3df08aad
commit
86afea97fd
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