rust/compiler/rustc_middle/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
..
dep_graph Pass DepContext and QueryContext by value when practical 2023-02-14 17:21:18 +01:00
hir Add opt_rpitit_info query 2023-03-01 12:56:38 -03:00
infer Rename many interner functions. 2023-02-24 07:32:24 +11:00
middle diagnostics: if AssocFn has self argument, describe as method 2023-02-22 08:40:33 -07:00
mir Rollup merge of #108022 - CraftSpider:align-bytes, r=oli-obk 2023-03-02 23:05:27 +01:00
query Make associated_item_def_ids for traits use an unstable option to also return associated types for RPITITs 2023-03-01 12:56:39 -03:00
thir Move THIR printing to rustc_mir_build. 2023-02-26 14:31:15 +00:00
traits Rename many interner functions. 2023-02-24 07:32:24 +11:00
ty Add opt_rpitit_info query 2023-03-01 12:56:38 -03:00
util Add some docs to bug, span_bug and delay_span_bug 2022-12-30 16:47:56 +01:00
arena.rs Wrap more into into closure_typeinfo query. 2023-02-26 10:30:27 +00:00
error.rs Match crate and slug names 2022-11-21 15:24:50 +01:00
lib.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
lint.rs create helper function for rustc_lint_defs::Level and remove it's duplicated code r=ozkanonur 2023-01-10 10:56:17 +03:00
macros.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
metadata.rs rustc: Parameterize ty::Visibility over used ID 2022-09-07 13:35:41 +04:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs Auto merge of #108487 - cjgillot:no-typeck-mir, r=oli-obk 2023-02-27 21:48:10 +00:00
values.rs Rename ty_error_with_guaranteed to ty_error, ty_error to ty_error_misc 2023-02-22 22:23:45 +00:00