Closed
Description
Kinda vague since we just ran into it and it's late for me, but we're seeing a behaviour change marking
enum Foo { A(f32), B }
as #[repr(u8)]
and otherwise not changing the program:
servo/webrender#2673 (comment)
Making it #[repr(C, u8)]
works correctly.
All 3 layouts of the enum should be identical, so this is especially surprising that literally anything is changing. We're only seeing the issue in release builds. I can help reduce/bisect/debug this further tomorrow.