mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-19 23:20:37 +00:00
Make the enum check work for negative discriminants The discriminant check was not working correctly for negative numbers. This change fixes that by masking out the relevant bits correctly. Fixes rust-lang/rust#143218.