@@ -123,7 +123,7 @@ pub(super) trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
123123 let ( dest, dest_len) = this. mplace_to_simd ( dest) ?;
124124
125125 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) ;
127127
128128 for i in 0 ..dest_len {
129129 let j1 = i. strict_mul ( 2 ) ;
@@ -160,7 +160,7 @@ pub(super) trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
160160 let ( dest, dest_len) = this. mplace_to_simd ( dest) ?;
161161
162162 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) ;
164164
165165 for i in 0 ..dest_len {
166166 let j1 = i. strict_mul ( 2 ) ;
@@ -335,7 +335,7 @@ pub(super) trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
335335 let ( dest, dest_len) = this. mplace_to_simd ( dest) ?;
336336
337337 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 ) ) ;
339339
340340 for i in 0 ..dest_len {
341341 let dest = this. project_index ( & dest, i) ?;
0 commit comments