rust/src/librustc_target
Mazdak Farrokhzad 0171fe5598
Rollup merge of #59519 - eddyb:layout-variants-refactor, r=oli-obk
rustc_target: factor out common fields of non-Single Variants.

@tmandry and I were discussing ways to generalize the current variants/discriminant layout to allow more fields in the "`enum`" (or another multi-variant types, such as potentially generator state, in the future), shared by all variants, than just the tag/niche discriminant.

This refactor should make it easier to extend multi-variant layouts, as nothing is duplicating anymore between "tagged enums" and "niche-filling enums".

r? @oli-obk
2019-03-31 19:19:50 +02:00
..
abi rustc_target: factor out common fields of non-Single Variants. 2019-03-29 09:33:48 +02:00
spec Rollup merge of #59506 - JohnTitor:improve-mcount, r=nagisa 2019-03-31 19:19:48 +02:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml librustc_target => 2018 2019-02-08 21:00:07 +09:00
lib.rs rustc: doc comments 2019-02-10 23:42:32 +00: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.