Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
rustc_target: use Integer instead of Primitive for discriminants and niches. #63450
Instead of signed/unsigned integers or pointers, discriminants (tag/niche-filling) and niches are now always unsigned integers (signedness is handled when reading them as signed values).
To avoid some duplication,
See #62138 (comment) for some of the discussion that led to me trying this out.
(As I wrote this, just noticed 3 tests failed, AFAICT all because of signedness)
Click to expand the log.