]> git.lizzy.rs Git - rust.git/commit
Never mark unions as uninhabited. Although I think this is wrong, it is certainly...
authorJonathan S <gereeter+code@gmail.com>
Thu, 21 Dec 2017 01:36:41 +0000 (19:36 -0600)
committerJonathan S <gereeter+code@gmail.com>
Thu, 21 Dec 2017 01:36:41 +0000 (19:36 -0600)
commitcbcf2ffe8041ae29f51e3a378c86734d6b555c05
treeee482adfb4ebf2f6db12eb1ebd78cadf1c96781a
parentc1fe4a22b9f35f326038b3a2745102ce7bd86fc1
Never mark unions as uninhabited. Although I think this is wrong, it is certainly sound, and the general consensus seems to value not having footguns over some sort of aesthetic consistency.
src/librustc/ty/layout.rs