mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
eb0f3ed59c
Make subtyping explicit in MIR This adds new mir-opt that pushes new `ProjectionElem` called `ProjectionElem::Subtype(T)` to `Rvalue` of a subtyped assignment so we can unsoundness issues like https://github.com/rust-lang/rust/issues/107205 Addresses https://github.com/rust-lang/rust/issues/112651 r? `@lcnr`
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.