From 887a3c184efaddf55b881307bcaf138be6cec336 Mon Sep 17 00:00:00 2001 From: Enrico Schmitz Date: Wed, 1 Mar 2017 14:33:17 +0100 Subject: [PATCH] Make tests compile for rustc 1.17.0-nightly (be760566c 2017-02-28) --- tests/consts.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/consts.rs b/tests/consts.rs index d4a4ef8a3..2a89625df 100644 --- a/tests/consts.rs +++ b/tests/consts.rs @@ -45,9 +45,9 @@ fn check(expect: Constant, expr: &Expr) { const TRUE: Constant = Constant::Bool(true); const FALSE: Constant = Constant::Bool(false); -const ZERO: Constant = Constant::Int(ConstInt::Infer(0)); -const ONE: Constant = Constant::Int(ConstInt::Infer(1)); -const TWO: Constant = Constant::Int(ConstInt::Infer(2)); +const ZERO: Constant = Constant::Int(ConstInt::U8(0)); +const ONE: Constant = Constant::Int(ConstInt::U8(1)); +const TWO: Constant = Constant::Int(ConstInt::U8(2)); #[test] fn test_lit() { @@ -93,7 +93,7 @@ fn test_ops() { // for transitivity assert_eq!(half32, half64); - assert_eq!(Constant::Int(ConstInt::Infer(0)), Constant::Int(ConstInt::U8(0))); - assert_eq!(Constant::Int(ConstInt::Infer(0)), Constant::Int(ConstInt::I8(0))); - assert_eq!(Constant::Int(ConstInt::InferSigned(-1)), Constant::Int(ConstInt::I8(-1))); + assert_eq!(Constant::Int(ConstInt::U8(0)), Constant::Int(ConstInt::U8(0))); + assert_eq!(Constant::Int(ConstInt::U8(0)), Constant::Int(ConstInt::I8(0))); + assert_eq!(Constant::Int(ConstInt::I8(-1)), Constant::Int(ConstInt::I8(-1))); }