rust/src/librustc_target
bors c839a7b4c2 Auto merge of #69257 - RalfJung:layout-visitor, r=eddyb
Adjust Miri value visitor, and doc-comment layout components

I realized that I still didn't have quite the right intuition for how our `LayoutDetails` work, so I had to adjust the Miri value visitor to the things I understood better now. I also added some doc-comments to `LayoutDetails` as a hopefully canonical place to note such things.

The main visitor change is that we *first* look at all the fields (according to `FieldPlacement`), and *then* check the variants and handle `Multiple` appropriately. I did not quite realize how orthogonal "fields" and "variants" are.
I also moved the check for the scalar ABI to *after* checking all the fields; this leads to better (more type-driven) error messages.

And it looks like we can finally remove that magic hack for `ty::Generator`. :D

r? @oli-obk for the Miri/visitor changes and @eddyb for the layout docs
The Miri PR is at: https://github.com/rust-lang/miri/pull/1178
2020-03-02 09:37:35 +00:00
..
abi Auto merge of #69257 - RalfJung:layout-visitor, r=eddyb 2020-03-02 09:37:35 +00:00
spec Improve MinGW detection when cross compiling 2020-02-28 14:15:06 +01:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml Rename syntax_pos to rustc_span in source code 2020-01-01 09:15:18 +03:00
lib.rs Remove unused feature gate from librustc_target 2020-02-07 13:58:57 +01:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00

librustc_target contains some very low-level details that are specific to different compilation targets and so forth.

For more information about how rustc works, see the rustc guide.