Skip to content

Commit d264d90

Browse files
committed
1 parent 4cc0cf8 commit d264d90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/eval_context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,7 @@ pub fn monomorphize_field_ty<'a, 'tcx:'a >(tcx: TyCtxt<'a, 'tcx, 'tcx>, f: &ty::
16111611
}
16121612

16131613
pub fn is_inhabited<'a, 'tcx: 'a>(tcx: TyCtxt<'a, 'tcx, 'tcx>, ty: Ty<'tcx>) -> bool {
1614-
ty.uninhabited_from(&mut HashMap::default(), tcx).is_empty()
1614+
!tcx.is_ty_uninhabited_from_all_modules(ty)
16151615
}
16161616

16171617
pub trait IntoValTyPair<'tcx> {

0 commit comments

Comments
 (0)