about summary refs log tree commit diff
path: root/src/test/ui/const-generics/array-size-in-generic-struct-param.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-25 14:42:20 +0000
committerbors <bors@rust-lang.org>2020-09-25 14:42:20 +0000
commit5b9e8864032a3bfefa6f69c33fd99e0383a414af (patch)
tree2dbbe921ff9dca5c86e8865a12da48dac8b96409 /src/test/ui/const-generics/array-size-in-generic-struct-param.rs
parentb984ef6797ff17faa2b1e0ebb54b78de1491e5fd (diff)
parent24e0913e37cc6fc363b37d13bf519db212f175a2 (diff)
downloadrust-5b9e8864032a3bfefa6f69c33fd99e0383a414af.tar.gz
rust-5b9e8864032a3bfefa6f69c33fd99e0383a414af.zip
Auto merge of #73453 - erikdesjardins:tuplayout, r=eddyb
Ignore ZST offsets when deciding whether to use Scalar/ScalarPair layout

This is important because Scalar/ScalarPair layout previously would not be used if any ZST had nonzero offset.
For example, before this change, only `((), u128)` would be laid out like `u128`, not `(u128, ())`.

Fixes #63244
Diffstat (limited to 'src/test/ui/const-generics/array-size-in-generic-struct-param.rs')
0 files changed, 0 insertions, 0 deletions