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.
{Meta,Pointee}Sized
concat-idents
ItemCtxt::report_placeholder_type_error
match
TyCtxt::def_descr