Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Sep 30, 2023
1 parent 45d5733 commit 1191131
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/tools/miri/src/shims/intrinsics/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,11 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
assert_eq!(index_len as u64, dest_len);

for i in 0..dest_len {
let src_index: u64 =
index[i as usize].unwrap_leaf().try_to_u32().unwrap().into();
let src_index: u64 = index[usize::try_from(i).unwrap()]
.unwrap_leaf()
.try_to_u32()
.unwrap()
.into();
let dest = this.project_index(&dest, i)?;

let val = if src_index < left_len {
Expand Down

0 comments on commit 1191131

Please sign in to comment.