about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-30 23:47:51 +0000
committerbors <bors@rust-lang.org>2022-07-30 23:47:51 +0000
commita2318651d4d2c6280a5047544cbf4180119ba966 (patch)
tree43144d29701ef870ba8d3b0b5abe197aa73e463c /compiler/rustc_codegen_ssa/src
parent0f4bcadb46006bc484dad85616b484f93879ca4e (diff)
parent1e7e74557285c6307c5cf78c88b0a3356d8b7498 (diff)
downloadrust-a2318651d4d2c6280a5047544cbf4180119ba966.tar.gz
rust-a2318651d4d2c6280a5047544cbf4180119ba966.zip
Auto merge of #99959 - cuviper:niche-size, r=eddyb
Fix the size of niche enums with ZST alignment

For enums with an aligned ZST variant, like `[T; 0]`, the niche layout
was not computing a sufficient size to be consistent with alignment. Now
we pad that size up to the alignment, and also make sure to only use the
niche variant's ABI when the size and alignment still match.

Fixes #99836
r? `@eddyb`
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
0 files changed, 0 insertions, 0 deletions