From 62d3b2e39c3610046afd927843942cfdddab6753 Mon Sep 17 00:00:00 2001 From: Caleb Zulawski Date: Sat, 16 Apr 2022 16:17:43 -0400 Subject: [PATCH] Add Copy bound to SIMD traits --- crates/core_simd/src/elements/float.rs | 2 +- crates/core_simd/src/elements/int.rs | 2 +- crates/core_simd/src/elements/uint.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/core_simd/src/elements/float.rs b/crates/core_simd/src/elements/float.rs index 456dd780dac..5a628f2121e 100644 --- a/crates/core_simd/src/elements/float.rs +++ b/crates/core_simd/src/elements/float.rs @@ -5,7 +5,7 @@ }; /// Operations on SIMD vectors of floats. -pub trait SimdFloat: Sized + Sealed { +pub trait SimdFloat: Copy + Sealed { /// Mask type used for manipulating this SIMD vector type. type Mask; diff --git a/crates/core_simd/src/elements/int.rs b/crates/core_simd/src/elements/int.rs index c3139b4ba3e..787a0741146 100644 --- a/crates/core_simd/src/elements/int.rs +++ b/crates/core_simd/src/elements/int.rs @@ -4,7 +4,7 @@ }; /// Operations on SIMD vectors of signed integers. -pub trait SimdInt: Sized + Sealed { +pub trait SimdInt: Copy + Sealed { /// Mask type used for manipulating this SIMD vector type. type Mask; diff --git a/crates/core_simd/src/elements/uint.rs b/crates/core_simd/src/elements/uint.rs index cba1a9b0ce0..f9d43a1d19b 100644 --- a/crates/core_simd/src/elements/uint.rs +++ b/crates/core_simd/src/elements/uint.rs @@ -2,7 +2,7 @@ use crate::simd::{intrinsics, LaneCount, Simd, SupportedLaneCount}; /// Operations on SIMD vectors of unsigned integers. -pub trait SimdUint: Sized + Sealed { +pub trait SimdUint: Copy + Sealed { /// Scalar type contained by this SIMD vector type. type Scalar;