Module reconstruct_matches

Source
Expand description

The way to match on enums in MIR is in two steps: first read the discriminant, then switch on the resulting integer. This pass merges the two into a SwitchKind::Match that directly mentions enum variants.

Structs§

Transform

Constants§

DISCRIMINANT_INTRINSIC 🔒