about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-07-27 08:31:07 +0200
committerRalf Jung <post@ralfj.de>2024-07-27 08:31:07 +0200
commit822286f0758bea84b798e494b5b6103d288a3221 (patch)
tree2e3af61e9cf97e5c33567d517ba2f5d53a1d2e64
parent00e89d3cb6c549d195c41557ee467ddc559b3efe (diff)
downloadrust-822286f0758bea84b798e494b5b6103d288a3221.tar.gz
rust-822286f0758bea84b798e494b5b6103d288a3221.zip
fix clippy
-rw-r--r--src/tools/miri/src/shims/x86/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/src/shims/x86/mod.rs b/src/tools/miri/src/shims/x86/mod.rs
index 0bbf2a8e13e..1bd32fce8bd 100644
--- a/src/tools/miri/src/shims/x86/mod.rs
+++ b/src/tools/miri/src/shims/x86/mod.rs
@@ -1178,7 +1178,7 @@ fn pclmulqdq<'tcx>(
         // if the i-th bit in right is set
         if (right & (1 << i)) != 0 {
             // xor result with `left` shifted to the left by i positions
-            result ^= (left as u128) << i;
+            result ^= u128::from(left) << i;
         }
     }