Fix unused_mut warning
This commit is contained in:
parent
4010788b3a
commit
9c53b1560c
1 changed files with 1 additions and 1 deletions
|
|
@ -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))),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue