Closed thejpster closed 11 months ago
Yep, I believe it should be. Since both the types inside the union have the same repr as the corresponding C types and the same size and alignment as each other (on our targets anyway), there's very little scope for rustc to do anything wrong with the default union repr, but nevertheless it should be. I've opened #756 to fix.
Fixed by #756
Someone asked me:
and I didn't know the answer. As we rely on the alignment and representation, it feels like it should be?