@@ -61,11 +61,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
61
61
let right = this. int_to_int_or_float ( & right, twice_wide) ?;
62
62
63
63
// 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) ?;
69
65
let added = this. wrapping_binary_op (
70
66
mir:: BinOp :: Add ,
71
67
& added,
@@ -80,10 +76,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
80
76
) ?;
81
77
82
78
// 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 ) ?;
87
80
this. write_immediate ( * res, & dest) ?;
88
81
}
89
82
}
@@ -110,11 +103,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
110
103
let right = this. int_to_int_or_float ( & right, twice_wide) ?;
111
104
112
105
// 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) ?;
118
107
// Keep the high half
119
108
let high = this. wrapping_binary_op (
120
109
mir:: BinOp :: Shr ,
@@ -123,10 +112,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
123
112
) ?;
124
113
125
114
// 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 ) ?;
130
116
this. write_immediate ( * res, & dest) ?;
131
117
}
132
118
}
0 commit comments