about summary refs log tree commit diff
path: root/src/rustllvm/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-03-31 19:19:50 +0200
committerGitHub <noreply@github.com>2019-03-31 19:19:50 +0200
commit0171fe55986abd7e9ac33839db1676fd3ed6c03a (patch)
tree55e75e3988fd19867ef0b73c980add642145605b /src/rustllvm/ArchiveWrapper.cpp
parent245a0afb52d18e906c1f042165559c57261e754a (diff)
parent5b7f4e9e2106f5e83fc650e8185d59a57e27ad09 (diff)
downloadrust-0171fe55986abd7e9ac33839db1676fd3ed6c03a.tar.gz
rust-0171fe55986abd7e9ac33839db1676fd3ed6c03a.zip
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
Diffstat (limited to 'src/rustllvm/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions