]> git.lizzy.rs Git - rust.git/commit
Find the largest niche when computing layouts
authorAnthony Ramine <n.oxyde@gmail.com>
Fri, 18 May 2018 12:20:48 +0000 (14:20 +0200)
committerAnthony Ramine <n.oxyde@gmail.com>
Fri, 18 May 2018 12:32:05 +0000 (14:32 +0200)
commitb7db68f516bc1a4296aaf2f682ec2384dc2af31e
tree545bc872d51080de9b75bb5d00961c67f1384fe0
parentdfc07a48f6797a20b3ee04fcff6f6c64bf0443bc
Find the largest niche when computing layouts

Otherwise we end up with `Option<Option<(&(), bool)>>` unnecessarily large.
src/librustc/ty/layout.rs
src/test/run-pass/type-sizes.rs