News for hackers. Stuff that matters.
Re:The Path to Rust by jeffdavis on Thursday May 26, 2016 @06:24PM (#11782175)
Maybe there should be an annotation saying that the layout of a struct is important for ABI compatibility, and it would silence warnings related to the layout.
Re:The Path to Rust by tatterdemalion on Friday May 27, 2016 @04:07PM (#11788578)
C FFI structs have to be marked `#[repr(C)]` to guarantee they'll be represented how C structs would be. It might be a reasonable change to implicitly allow dead fields on any struct with a C repr (since using the struct in C effectively makes all of its fields public).