@@ -61,11 +61,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
6161 let right = this. int_to_int_or_float ( & right, twice_wide) ?;
6262
6363 // Calculate left + right + 1
64- let added = this. wrapping_binary_op (
65- mir:: BinOp :: Add ,
66- & left,
67- & right,
68- ) ?;
64+ let added = this. wrapping_binary_op ( mir:: BinOp :: Add , & left, & right) ?;
6965 let added = this. wrapping_binary_op (
7066 mir:: BinOp :: Add ,
7167 & added,
@@ -80,10 +76,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
8076 ) ?;
8177
8278 // Narrow back to the original type
83- let res = this. int_to_int_or_float (
84- & divided,
85- dest. layout ,
86- ) ?;
79+ let res = this. int_to_int_or_float ( & divided, dest. layout ) ?;
8780 this. write_immediate ( * res, & dest) ?;
8881 }
8982 }
@@ -110,11 +103,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
110103 let right = this. int_to_int_or_float ( & right, twice_wide) ?;
111104
112105 // Multiply
113- let multiplied = this. wrapping_binary_op (
114- mir:: BinOp :: Mul ,
115- & left,
116- & right,
117- ) ?;
106+ let multiplied = this. wrapping_binary_op ( mir:: BinOp :: Mul , & left, & right) ?;
118107 // Keep the high half
119108 let high = this. wrapping_binary_op (
120109 mir:: BinOp :: Shr ,
@@ -123,10 +112,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
123112 ) ?;
124113
125114 // Narrow back to the original type
126- let res = this. int_to_int_or_float (
127- & high,
128- dest. layout ,
129- ) ?;
115+ let res = this. int_to_int_or_float ( & high, dest. layout ) ?;
130116 this. write_immediate ( * res, & dest) ?;
131117 }
132118 }
0 commit comments