rust/compiler/rustc_const_eval/src
Matthias Krüger f75f440bbf
Rollup merge of #108022 - CraftSpider:align-bytes, r=oli-obk
Support allocations with non-Box<[u8]> bytes

This is prep work for allowing miri to support passing pointers to C code, which will require `Allocation`s to be correctly aligned. Currently, it just makes `Allocation` generic and plumbs the necessary changes through the right places.

The follow-up to this will be adding a type in the miri interpreter which correctly aligns the bytes, using that for the Miri engine, then allowing Miri to pass pointers into these allocations to C calls.

Based off of #100467, credit to ```@emarteca``` for the code
2023-03-02 23:05:27 +01:00
..
const_eval Rename many interner functions. 2023-02-24 07:32:24 +11:00
interpret Rollup merge of #108022 - CraftSpider:align-bytes, r=oli-obk 2023-03-02 23:05:27 +01:00
transform Auto merge of #108175 - cjgillot:validate-storage, r=tmiasko 2023-02-27 11:41:41 +00:00
util Unify all validity check intrinsics 2023-02-27 13:30:44 +00:00
errors.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
lib.rs Unify all validity check intrinsics 2023-02-27 13:30:44 +00:00