diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-04-01 22:52:37 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-04-01 22:55:26 +0200 |
| commit | 1c11748a54027dc5f89185dcbb39ff8996d71515 (patch) | |
| tree | 38a7374f14703c0f22dba23fb5b531b59ab985fb | |
| parent | a98e4713bff40f006d48d195c5af387b93d9c907 (diff) | |
| download | rust-1c11748a54027dc5f89185dcbb39ff8996d71515.tar.gz rust-1c11748a54027dc5f89185dcbb39ff8996d71515.zip | |
fix typo.
| -rw-r--r-- | src/librustc/middle/const_eval.rs | 2 |
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), |
