Fix unused_mut warning

This commit is contained in:
Michael Wright 2018-07-31 07:45:05 +02:00
parent 4010788b3a
commit 9c53b1560c

View file

@ -241,7 +241,7 @@ impl<'c, 'cc> ConstEvalLateContext<'c, 'cc> {
match *o {
Bool(b) => Some(Bool(!b)),
Int(value) => {
let mut value = !value;
let value = !value;
match ty.sty {
ty::TyInt(ity) => Some(Int(unsext(self.tcx, value as i128, ity))),
ty::TyUint(ity) => Some(Int(clip(self.tcx, value, ity))),