From 4c88be3592ce027629baacc71c450aa997f066ff Mon Sep 17 00:00:00 2001 From: varkor Date: Tue, 16 Oct 2018 16:31:41 +0100 Subject: [PATCH] Fix handling of divergent dicriminants --- src/librustc_mir/build/expr/into.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/librustc_mir/build/expr/into.rs b/src/librustc_mir/build/expr/into.rs index 4b12562887a..e344d845869 100644 --- a/src/librustc_mir/build/expr/into.rs +++ b/src/librustc_mir/build/expr/into.rs @@ -275,7 +275,6 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> { exit_block.unit() } ExprKind::Call { ty, fun, args, from_hir_call } => { - let diverges = expr.ty.conservative_is_uninhabited(); let intrinsic = match ty.sty { ty::FnDef(def_id, _) => { let f = ty.fn_sig(this.hir.tcx());