@@ -123,7 +123,7 @@ pub(super) trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
123
123
let ( dest, dest_len) = this. mplace_to_simd ( dest) ?;
124
124
125
125
assert_eq ! ( left_len, right_len) ;
126
- assert_eq ! ( dest_len. checked_mul ( 2 ) . unwrap ( ) , left_len) ;
126
+ assert_eq ! ( dest_len. strict_mul ( 2 ) , left_len) ;
127
127
128
128
for i in 0 ..dest_len {
129
129
let j1 = i. strict_mul ( 2 ) ;
@@ -160,7 +160,7 @@ pub(super) trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
160
160
let ( dest, dest_len) = this. mplace_to_simd ( dest) ?;
161
161
162
162
assert_eq ! ( left_len, right_len) ;
163
- assert_eq ! ( dest_len. checked_mul ( 2 ) . unwrap ( ) , left_len) ;
163
+ assert_eq ! ( dest_len. strict_mul ( 2 ) , left_len) ;
164
164
165
165
for i in 0 ..dest_len {
166
166
let j1 = i. strict_mul ( 2 ) ;
@@ -335,7 +335,7 @@ pub(super) trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
335
335
let ( dest, dest_len) = this. mplace_to_simd ( dest) ?;
336
336
337
337
assert_eq ! ( left_len, right_len) ;
338
- assert_eq ! ( left_len, dest_len. checked_mul ( 8 ) . unwrap ( ) ) ;
338
+ assert_eq ! ( left_len, dest_len. strict_mul ( 8 ) ) ;
339
339
340
340
for i in 0 ..dest_len {
341
341
let dest = this. project_index ( & dest, i) ?;
0 commit comments