From 1c11748a54027dc5f89185dcbb39ff8996d71515 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Wed, 1 Apr 2015 22:52:37 +0200 Subject: [PATCH] fix typo. --- src/librustc/middle/const_eval.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/middle/const_eval.rs b/src/librustc/middle/const_eval.rs index 214ea163232..fb742b6737f 100644 --- a/src/librustc/middle/const_eval.rs +++ b/src/librustc/middle/const_eval.rs @@ -603,7 +603,7 @@ fn fromb(b: bool) -> const_val { const_int(b as i64) } e.span, "unary negation of unsigned integers may be removed in the future"); } - const_uint(n) => try!(const_uint_checked_neg(n, e, expr_uint_type)), + try!(const_uint_checked_neg(i, e, expr_uint_type)) } const_str(_) => signal!(e, NegateOnString), const_bool(_) => signal!(e, NegateOnBoolean),