From e51958ba7278d0430c750092878275b28e62ce35 Mon Sep 17 00:00:00 2001 From: Jake Goulding Date: Wed, 8 Jun 2016 20:19:41 -0400 Subject: [PATCH] Support getting the minimum 16-bit isize value --- src/librustc_mir/build/expr/as_rvalue.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc_mir/build/expr/as_rvalue.rs b/src/librustc_mir/build/expr/as_rvalue.rs index 6524124c13b..ea054fd773c 100644 --- a/src/librustc_mir/build/expr/as_rvalue.rs +++ b/src/librustc_mir/build/expr/as_rvalue.rs @@ -367,6 +367,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> { ast::IntTy::Is => { let int_ty = self.hir.tcx().sess.target.int_type; let min = match int_ty { + ast::IntTy::I16 => std::i16::MIN as i64, ast::IntTy::I32 => std::i32::MIN as i64, ast::IntTy::I64 => std::i64::MIN, _ => unreachable!()