News for hackers. Stuff that matters.
Re:Optimizing Rust Struct Size by eddyb on Sunday April 16, 2017 @06:40AM (#14125253)
> 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.

There are no comments on this comment yet.