Skip to content

Commit 4c88be3

Browse files
committed
Fix handling of divergent dicriminants
1 parent 9f609f9 commit 4c88be3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/librustc_mir/build/expr/into.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
275275
exit_block.unit()
276276
}
277277
ExprKind::Call { ty, fun, args, from_hir_call } => {
278-
let diverges = expr.ty.conservative_is_uninhabited();
279278
let intrinsic = match ty.sty {
280279
ty::FnDef(def_id, _) => {
281280
let f = ty.fn_sig(this.hir.tcx());

0 commit comments

Comments
 (0)