Matthias Krüger 3ecae2932c
Rollup merge of #110706 - scottmcm:transmute_unchecked, r=oli-obk
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`.

See also https://github.com/rust-lang/rust/pull/108442#issuecomment-1474777273, where `CastKind::Transmute` was added having exactly these semantics before the lang meeting (which I wasn't in) independently expressed interest.
2023-04-24 07:53:25 +02:00
..
2023-04-20 17:48:32 +00:00
2023-04-17 16:09:18 -04:00
2023-04-20 17:48:32 +00:00
2023-04-17 16:09:18 -04:00
2023-02-16 18:30:25 +01:00
2023-04-17 16:09:18 -04:00
2023-04-17 16:09:18 -04:00
2023-04-20 17:48:32 +00:00
2023-04-20 17:48:32 +00:00
2023-04-06 09:34:16 +01:00
2023-03-14 20:52:42 +01:00
2023-03-13 18:22:55 +00:00
2023-04-21 02:14:02 -07:00
2023-03-28 22:22:37 -07:00
2023-04-17 16:09:18 -04:00
2023-04-10 22:02:52 +02:00