Skip to content

Commit c6890e1

Browse files
committed
Revert Ty::is_uninhabited to its original state
1 parent a4e6009 commit c6890e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/ty/sty.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -906,10 +906,10 @@ impl<'a, 'gcx, 'tcx> TyS<'tcx> {
906906
// more complete.
907907
match self.sty {
908908
TyEnum(def, _) | TyStruct(def, _) => def.is_empty(),
909-
TyNever => true,
910909

911-
// FIXME(canndrew): There's no reason why this can't be uncommented, it's tested and it
912-
// doesn't break anything. But I'm keeping my changes small for now.
910+
// FIXME(canndrew): There's no reason why these can't be uncommented, they're tested
911+
// and they don't break anything. But I'm keeping my changes small for now.
912+
//TyNever => true,
913913
//TyTuple(ref tys) => tys.iter().any(|ty| ty.is_uninhabited(cx)),
914914

915915
// FIXME(canndrew): this line breaks core::fmt

0 commit comments

Comments
 (0)