Mastodon Feed: Post

Mastodon Feed

rust@octodon.social ("Rust tips") wrote:

#Rustlang 1.67 added extra optimizations of struct layouts. This might break code that relied on the "don't rely on this" layout of Rust structs without `#[repr(C)]`.

If you want to ensure your code doesn't rely on undocumented struct layout, there's an nightly flag for that: https://github.com/rust-lang/rust/issues/106764

RUSTFLAGS="-Z randomize-layout" cargo +nightly test