mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
87625dbf2b
codegen, miri: fix computing the offset of an unsized field in a packed struct `#[repr(packed)]` strikes again. Fixes https://github.com/rust-lang/rust/issues/118537 Fixes https://github.com/rust-lang/miri/issues/3200 `@bjorn3` I assume cranelift needs the same fix.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.