Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/core_simd/src/simd/num/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::simd::{
};

/// Operations on SIMD vectors of floats.
pub trait SimdFloat: Copy + Sealed {
pub trait SimdFloat: 'static + Copy + Sealed {
/// Mask type used for manipulating this SIMD vector type.
type Mask;

Expand Down
2 changes: 1 addition & 1 deletion crates/core_simd/src/simd/num/int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::simd::{
};

/// Operations on SIMD vectors of signed integers.
pub trait SimdInt: Copy + Sealed {
pub trait SimdInt: 'static + Copy + Sealed {
/// Mask type used for manipulating this SIMD vector type.
type Mask;

Expand Down
2 changes: 1 addition & 1 deletion crates/core_simd/src/simd/num/uint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use super::sealed::Sealed;
use crate::simd::{LaneCount, Simd, SimdCast, SimdElement, SupportedLaneCount, cmp::SimdOrd};

/// Operations on SIMD vectors of unsigned integers.
pub trait SimdUint: Copy + Sealed {
pub trait SimdUint: 'static + Copy + Sealed {
/// Scalar type contained by this SIMD vector type.
type Scalar;

Expand Down
2 changes: 1 addition & 1 deletion crates/core_simd/src/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ use sealed::Sealed;
/// Strictly, it is valid to impl if the vector will not be miscompiled.
/// Practically, it is user-unfriendly to impl it if the vector won't compile,
/// even when no soundness guarantees are broken by allowing the user to try.
pub unsafe trait SimdElement: Sealed + Copy {
pub unsafe trait SimdElement: 'static + Copy + Sealed {
/// The mask element type corresponding to this element type.
type Mask: MaskElement;
}
Expand Down
Loading