Skip to content

Commit 0d9f4fb

Browse files
committed
Remove trivial function.
1 parent c1afe6a commit 0d9f4fb

File tree

1 file changed

+2
-6
lines changed
  • src/librustc/ty/inhabitedness

1 file changed

+2
-6
lines changed

src/librustc/ty/inhabitedness/mod.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,11 @@ impl<'tcx> TyCtxt<'tcx> {
9696
// ```
9797
// forest.is_empty()
9898
// ```
99-
self.ty_inhabitedness_forest(ty).contains(self, module)
99+
ty.uninhabited_from(self).contains(self, module)
100100
}
101101

102102
pub fn is_ty_uninhabited_from_any_module(self, ty: Ty<'tcx>) -> bool {
103-
!self.ty_inhabitedness_forest(ty).is_empty()
104-
}
105-
106-
fn ty_inhabitedness_forest(self, ty: Ty<'tcx>) -> DefIdForest {
107-
ty.uninhabited_from(self)
103+
!ty.uninhabited_from(self).is_empty()
108104
}
109105
}
110106

0 commit comments

Comments
 (0)