rust/compiler/rustc_const_eval/src
Michael Goulet 12ba87b996
Rollup merge of #97395 - RalfJung:call-abi, r=oli-obk
Miri call ABI check: ensure type size+align stay the same

We should almost certainly not accept calls where caller and callee disagree on the size or alignment of the type.

The checks we do *almost* imply that, except that `ScalarPair` types can have `repr(align)` and thus differ in size/align even when they are pairs of the same primitive type.

r? ``@oli-obk``
2022-05-30 15:57:28 -07:00
..
const_eval Add a helper function for checking whether a default function in a trait can be treated as const 2022-05-30 08:52:25 +00:00
interpret Rollup merge of #97395 - RalfJung:call-abi, r=oli-obk 2022-05-30 15:57:28 -07:00
transform Auto merge of #97025 - ouz-a:mini-derefer-generator, r=davidtwco 2022-05-30 20:06:25 +00:00
util rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
lib.rs Remove #[default..] and add #[const_trait] 2022-05-30 08:52:24 +00:00