4 ms·
> It's just that it wasn't enforced before. To be clear, this "enforcing" is now the fact that your fields, if you forgot #[repr(C)], might be in a different o
by eddyb 9y ago
> It's just that it wasn't enforced before.
To be clear, this "enforcing" is now the fact that your fields, if you forgot #[repr(C)], might be in a different order than what you assume.
But it has been linted for a very long time, at least in the direct interactions with FFI, you'd have to be casting pointers to/from C to hide that you're using a Rust struct for C data, from that lint.