rust/library/core/src/mem
Scott McMurray 1de2257c3f 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`.
2023-04-22 17:22:03 -07:00
..
manually_drop.rs rm const traits in libcore 2023-04-16 06:49:27 +00:00
maybe_uninit.rs Add intrinsics::transmute_unchecked 2023-04-22 17:22:03 -07:00
mod.rs minor tweaks 2023-04-21 02:14:04 -07:00
transmutability.rs rm const traits in libcore 2023-04-16 06:49:27 +00:00