Skip to content

Commit

Permalink
fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Apr 1, 2015
1 parent a98e471 commit 1c11748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/middle/const_eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 1c11748

Please sign in to comment.