Files
rust/library/core
Jonathan Brouwer 512c162e36 Rollup merge of #158345 - scottmcm:assume-init-no-read, r=RalfJung
Use `transmute_neo` in `assume_init`

I noticed this basically open-coding a transmute via `read`, but now that we have a transmute that doesn't fail there on the typeck size check I figured that we might as well use it here.  The Miri errors are preserved (at least locally, but CI will double-check) so hopefully this is ok.

r? @RalfJung as the author of https://github.com/rust-lang/rust/pull/143327

Context is that I saw the raw-ref-cast-and-read in https://github.com/rust-lang/rust/pull/158341/changes#diff-ee00b0dbbebae9c10bf879a79377c87a7a68208a7e213d6ca792a6ef5f216855R87-R90 and thought it could be simpler 🙂
2026-06-25 21:18:31 +02:00
..
2025-11-16 23:35:37 -05:00