mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 11:26:40 +00:00
Allow transmute casts in pre-runtime-MIR
r? ``@scottmcm``
cc ``@BoxyUwU``
turns out in https://github.com/rust-lang/rust/pull/138393 I erroneously used transmute casts in fd3da4bebd/compiler/rustc_mir_build/src/builder/matches/test.rs (L209)
I don't think they have any issues using them before runtime, we just checked for them because we didn't have code exercising those code paths
For more information about how rustc works, see the rustc dev guide.