rust/compiler/rustc_const_eval
Matthias Krüger 6e87eb58ed
Rollup merge of #133681 - RalfJung:niches, r=wesleywiser
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.
2024-12-03 21:55:26 +01:00
..
src Rollup merge of #133681 - RalfJung:niches, r=wesleywiser 2024-12-03 21:55:26 +01:00
Cargo.toml compiler: Factor rustc_target::abi out of const_eval 2024-10-08 18:24:56 -07:00
messages.ftl Get rid of HIR const checker 2024-11-22 02:32:26 +00:00