rust/compiler/rustc_const_eval/src
bors 6dd68402c5 Auto merge of #96220 - RalfJung:scalar-no-padding, r=oli-obk
tighten sanity checks around Scalar and ScalarPair

While investigating https://github.com/rust-lang/rust/issues/96185 I noticed codegen has tighter sanity checks here than Miri does, so I added some more assertions. Strangely, some of them fail, so I also needed to add a HACK... that is probably worth looking into.

This does not fix that issue, but it changes the ICE messages, making it quite clear that we have a scalar whose size is not the same as that of the surrounding layout.

r? `@oli-obk`
2022-05-11 18:34:14 +00:00
..
const_eval rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
interpret Auto merge of #96220 - RalfJung:scalar-no-padding, r=oli-obk 2022-05-11 18:34:14 +00:00
transform Auto merge of #96815 - SparrowLii:promote_const, r=oli-obk 2022-05-09 11:49:09 +00:00
util rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
lib.rs Stabilize bool::then_some 2022-05-04 13:22:08 +02:00