mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-06 04:06:31 +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.