Don't recompute tail in lower_stmts

This commit is contained in:
Waffle Maybe 2024-05-31 00:46:07 +02:00 committed by GitHub
parent 6f3df08aad
commit 86afea97fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,7 +76,7 @@ fn lower_stmts(
StmtKind::Empty => {}
StmtKind::MacCall(..) => panic!("shouldn't exist here"),
}
ast_stmts = &ast_stmts[1..];
ast_stmts = tail;
}
(self.arena.alloc_from_iter(stmts), expr)
}