rust-lang/rust — pull request #17646 by bkoropoff (2014-09-30 04:13:18+00:00)
Title: Fix a handful of ICEs around casting

This fixes missing cases in trans for various casts that are permitted by typeck. I wasn't sure whether some of these were actually intended to be allowed (e.g. enum -> pointer), so each commit is a self-contained change that can easily be dropped if necessary.

Closes issue #17458
Closes issue #17444