about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-04-01 22:52:37 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-04-01 22:55:26 +0200
commit1c11748a54027dc5f89185dcbb39ff8996d71515 (patch)
tree38a7374f14703c0f22dba23fb5b531b59ab985fb
parenta98e4713bff40f006d48d195c5af387b93d9c907 (diff)
downloadrust-1c11748a54027dc5f89185dcbb39ff8996d71515.tar.gz
rust-1c11748a54027dc5f89185dcbb39ff8996d71515.zip
fix typo.
-rw-r--r--src/librustc/middle/const_eval.rs2
1 files changed, 1 insertions, 1 deletions
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 @@ pub fn eval_const_expr_partial<'tcx>(tcx: &ty::ctxt<'tcx>,
                       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),