mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-02 00:07:42 +03:00
98f5ebbe2e
Replace switch to unreachable by assume statements `UnreachablePropagation` currently keeps some switch terminators alive in order to ensure codegen can infer the inequalities on the discriminants. This PR proposes to encode those inequalities as `Assume` statements. This allows to simplify MIR further by removing some useless terminators.