mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-15 08:23:26 +00:00
![]() improve TagEncoding::Niche docs, sanity check, and UB checks Turns out the `niche_variants` range can actually contain the `untagged_variant`. We should report this as UB in Miri, so this PR implements that. Also rename `partially_check_layout` to `layout_sanity_check` for better consistency with how similar functions are called in other parts of the compiler. Turns out my adjustments to the transmutation logic also fix https://github.com/rust-lang/rust/issues/126267. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |