diff --git a/crates/core_simd/src/vector.rs b/crates/core_simd/src/vector.rs index 8379135826d13..19bf45385db0d 100644 --- a/crates/core_simd/src/vector.rs +++ b/crates/core_simd/src/vector.rs @@ -125,6 +125,8 @@ where /// assert_eq!(v.as_array(), &[8, 8, 8, 8]); /// ``` pub fn splat(value: T) -> Self { + // This is a workaround for `[value; LANES]` generating a loop: + // https://github.com/rust-lang/rust/issues/97804 struct Splat; impl Swizzle<1, LANES> for Splat { const INDEX: [usize; LANES] = [0; LANES];