-Zvalidate-mir: check that all unwind edges go to cleanup
blocks
#72959
Labels
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Blocks that are part of unwinding code always need to marked as
cleanup
. This seems like an easy thing to check in the validation pass. I believe this would have caught a bug in the generator transform (a pretty long time ago).This issue has been assigned to @doctorn via this comment.
The text was updated successfully, but these errors were encountered: