about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-05-20 01:01:37 +0200
committerGitHub <noreply@github.com>2019-05-20 01:01:37 +0200
commitf9d65c000dfa92825589dd1a13a20b95a328493b (patch)
treea30423db68035d0500fc8e349abee50ff434bc84 /src/test/ui/thinlto
parent6afcb5628523b0baae5704ad34ac1aba8ba10de6 (diff)
parenta91ad60158647c1f6a89b9c01915279ce9314a65 (diff)
downloadrust-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