librustc: Make uninhabited enums not castable to int
auto merge of #6204 : pcwalton/rust/uninhabited-enum-cast, r=catamorphism

r? @catamorphism