]> git.lizzy.rs Git - rust.git/commit
Only mark unions as uninhabited if all of their fields are uninhabited. Fixes #46845.
authorJonathan S <gereeter+code@gmail.com>
Tue, 19 Dec 2017 23:24:38 +0000 (17:24 -0600)
committerJonathan S <gereeter+code@gmail.com>
Tue, 19 Dec 2017 23:24:38 +0000 (17:24 -0600)
commitc1fe4a22b9f35f326038b3a2745102ce7bd86fc1
tree5a6f91684ecc470e60584439ccd5022bc446b35b
parentb76f224af867b198e4051806cc6e1ac686085cdc
Only mark unions as uninhabited if all of their fields are uninhabited. Fixes #46845.
src/librustc/ty/layout.rs
src/test/run-pass/issue-46845.rs [new file with mode: 0644]