diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-05-20 01:01:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-20 01:01:37 +0200 |
| commit | f9d65c000dfa92825589dd1a13a20b95a328493b (patch) | |
| tree | a30423db68035d0500fc8e349abee50ff434bc84 /src/test/ui/thinlto | |
| parent | 6afcb5628523b0baae5704ad34ac1aba8ba10de6 (diff) | |
| parent | a91ad60158647c1f6a89b9c01915279ce9314a65 (diff) | |
| download | rust-f9d65c000dfa92825589dd1a13a20b95a328493b.tar.gz rust-f9d65c000dfa92825589dd1a13a20b95a328493b.zip | |
Rollup merge of #60590 - petertodd:2018-test-union-nonzero, r=nikomatsakis,Centril
Test interaction of unions with non-zero/niche-filling optimization Notably this nails down part of the behavior that MaybeUninit assumes, e.g. that a Option<MaybeUninit<&u8>> does not take advantage of non-zero optimization, and thus is a safe construct. It also verifies the status quo: that even unions that could theoretically take advantage of niches don't. (relevant: https://github.com/rust-lang/rust/issues/36394)
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
