about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2023-04-22 17:14:19 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2023-04-22 17:22:03 -0700
commit1de2257c3f6579028f2b8d97908ba12896abca61 (patch)
tree776f4c8609e8a3654c1de39ff885a8de03bd5dc4 /compiler/rustc_interface/src
parent4396ceca05585ad887976b985cfa8dd8e58cd512 (diff)
downloadrust-1de2257c3f6579028f2b8d97908ba12896abca61.tar.gz
rust-1de2257c3f6579028f2b8d97908ba12896abca61.zip
Add `intrinsics::transmute_unchecked`
This takes a whole 3 lines in `compiler/` since it lowers to `CastKind::Transmute` in MIR *exactly* the same as the existing `intrinsics::transmute` does, it just doesn't have the fancy checking in `hir_typeck`.

Added to enable experimenting with the request in <https://github.com/rust-lang/rust/pull/106281#issuecomment-1496648190> and because the portable-simd folks might be interested for dependently-sized array-vector conversions.

It also simplifies a couple places in `core`.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions