]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ty/inhabitedness/mod.rs
Rollup merge of #60428 - wesleywiser:refactor_const_eval, r=oli-obk
[rust.git] / src / librustc / ty / inhabitedness / mod.rs
index 963b4b439f84da38c29f6641142de6c6e617b786..197d3325f51cfdb232dd3c8b3815a9788baca0c3 100644 (file)
@@ -181,7 +181,7 @@ fn uninhabited_from(&self, tcx: TyCtxt<'a, 'gcx, 'tcx>) -> DefIdForest
 
             Tuple(ref tys) => {
                 DefIdForest::union(tcx, tys.iter().map(|ty| {
-                    ty.uninhabited_from(tcx)
+                    ty.expect_ty().uninhabited_from(tcx)
                 }))
             }
 
@@ -203,4 +203,3 @@ fn uninhabited_from(&self, tcx: TyCtxt<'a, 'gcx, 'tcx>) -> DefIdForest
         }
     }
 }
-