Skip to content

Commit 2be0173

Browse files
committed
Auto merge of #108052 - matthiaskrgr:rollup-p6r6rnl, r=matthiaskrgr
Rollup of 10 pull requests Successful merges: - #103478 ( Suggest fix for misplaced generic params on fn item #103366 ) - #107739 (Check for overflow in evaluate_canonical_goal) - #108003 (Avoid ICE when the generic_span is empty) - #108016 ("Basic usage" is redundant for there is just one example) - #108023 (Shrink size of array benchmarks) - #108024 (add message to update Cargo.toml when x is changed) - #108025 (rustdoc: add more tooltips to intra-doc links) - #108029 (s/eval_usize/eval_target_usize/ for clarity) - #108035 (Avoid using a dead email address as the main email address) - #108038 (Remove needless supertrait constraints from Interner projections) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents 9dbb542 + 4c229b1 commit 2be0173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/intrinsics/simd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
469469
let ty::Array(_, index_len) = index.layout.ty.kind() else {
470470
span_bug!(this.cur_span(), "simd_shuffle index argument has non-array type {}", index.layout.ty)
471471
};
472-
let index_len = index_len.eval_usize(*this.tcx, this.param_env());
472+
let index_len = index_len.eval_target_usize(*this.tcx, this.param_env());
473473

474474
assert_eq!(left_len, right_len);
475475
assert_eq!(index_len, dest_len);

0 commit comments

Comments
 (0)