There's a branch correctness-bug that contains a failing test. Your task is to fix the code so that the test passes. Here are some things I know about the bug:
It has to do with Switches, potentially nested, and potentially single-branch.
It causes the outermost switch to be equal to its predicate.
Commenting out the rule on line 30 of switch_rewrite.rs causes the test to pass, but I'm pretty sure the rule itself is sound.
There's a branch
correctness-bug
that contains a failing test. Your task is to fix the code so that the test passes. Here are some things I know about the bug:Switch
es, potentially nested, and potentially single-branch.switch_rewrite.rs
causes the test to pass, but I'm pretty sure the rule itself is sound.Good luck!