mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 19:28:29 +00:00

offset_of: don't require type to be `Sized` Fixes #112051 ~~The RFC [explicitly forbids](https://rust-lang.github.io/rfcs/3308-offset_of.html#limitations) non-`Sized` types, but it looks like only the fields being recursed into were checked. The sized check also seemed to have been completely missing for tuples~~
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.