Closed sfleener closed 1 year ago
Hi there, thank you for the bug report.
Would you want to pick this up? I can guide you a bit if you want to.
The error is in our try_from_bits
generation code, where I just used the wrong shift operator (>>
instead of wrapping_shr
).
Sure I can take a look, seems fairly straightforward
Triggering this panic also seems to require the struct and enum width to match the width of the underlying integer representation.
Here's the most minimal reproduction I could create of the issue, I can also reproduce this with 16, 32, and 64 bits: