News for hackers. Stuff that matters.
Re:Optimizing Rust Struct Size by kibwen on Saturday April 15, 2017 @06:56PM (#14123299)
`repr(C)` has always been needed for passing Rust structs to C, the problem was that there were cases where it would work without doing so (various schemes were devised to prevent this, including randomizing field layout (which I believe is what Go does? could be misremembering...), but it wasn't a high-enough priority to get implemented​ before 1.0).

There are no comments on this comment yet.