rust/compiler/rustc_target/src
bors 4b9f4b221b Auto merge of #88308 - eddyb:cooked-layouts, r=nagisa
Morph `layout_raw` query into `layout_of`.

Before this PR, `LayoutCx::layout_of` wrapped the `layout_raw` query, to:
* normalize the type, before attempting to compute the layout
* pass the layout to `record_layout_for_printing`, for `-Zprint-type-sizes`

Moving those two responsibilities into the query may reduce overhead (due to cached calls skipping those steps), but I want to do a perf run to know.

One of the changes I had to make was changing the return type of the query, to be able to both get out the type produced by normalizing inside the query *and* to match the signature of the old `TyCtxt::layout_of`. This change may be worse, perf-wise, so that's another reason I want to check.

r? `@nagisa` cc `@oli-obk`
2021-08-26 15:24:01 +00:00
..
abi Auto merge of #88308 - eddyb:cooked-layouts, r=nagisa 2021-08-26 15:24:01 +00:00
asm Fix typos “a”→“an” 2021-08-22 15:35:11 +02:00
spec allow specifying an ios version for the llvm target 2021-08-24 08:23:05 +02:00
lib.rs use undef for uninitialized bytes in constants 2021-08-25 17:49:28 -04:00
tests.rs Emit warnings for unused fields in custom targets. 2021-06-17 21:48:02 +02:00