Ever since we had enums with repr(u128)/repr(i128), the type of the discriminant_value intrinsic was no longer adequate: it returns a u64, which simply cannot fit all discriminant values.
@eddyb says the type of the intrinsic should be adjusted. This will affect both its codegen and Miri implementation.
This issue has been assigned to @lcnr via this comment.
Ever since we had enums with
repr(u128)/repr(i128), the type of thediscriminant_valueintrinsic was no longer adequate: it returns au64, which simply cannot fit all discriminant values.@eddyb says the type of the intrinsic should be adjusted. This will affect both its codegen and Miri implementation.
This issue has been assigned to @lcnr via this comment.