mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 20:17:03 +00:00
Change int-to-ptr transmute lowering back to inttoptr This is a revert of https://github.com/rust-lang/rust/pull/121282, but with a regression test to cover the reported miscompile in https://github.com/rust-lang/rust/issues/147265 that was caused by the way the code here combines with https://github.com/rust-lang/rust/pull/138759.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.