about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKonrad Höffner <konrad.hoeffner@uni-leipzig.de>2024-04-10 10:56:51 +0200
committerGitHub <noreply@github.com>2024-04-10 10:56:51 +0200
commitf79ce11d54f2f2e849c34539d0fdcdb4b4d71b28 (patch)
treee152e9c2c013b6bc4d39d67007d0a7ea12957eef
parent48d411b2cc2e058eb0ed7d42e9e45f7064fe184f (diff)
downloadrust-f79ce11d54f2f2e849c34539d0fdcdb4b4d71b28.tar.gz
rust-f79ce11d54f2f2e849c34539d0fdcdb4b4d71b28.zip
document PartialOrd difference to simd_min and simd_max
Avoid migration pitfall from packed_simd as described in #402.
-rw-r--r--crates/core_simd/src/vector.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/core_simd/src/vector.rs b/crates/core_simd/src/vector.rs
index 6c8205b112c..4bcbba727a2 100644
--- a/crates/core_simd/src/vector.rs
+++ b/crates/core_simd/src/vector.rs
@@ -925,6 +925,7 @@ where
     }
 }
 
+/// Lexicographic order. For the SIMD elementwise minimum and maximum, use simd_min and simd_max instead.
 impl<T, const N: usize> PartialOrd for Simd<T, N>
 where
     LaneCount<N>: SupportedLaneCount,