diff --git a/crates/core_simd/src/masks.rs b/crates/core_simd/src/masks.rs index ba7da704f61d..3bb444062ab8 100644 --- a/crates/core_simd/src/masks.rs +++ b/crates/core_simd/src/masks.rs @@ -14,20 +14,6 @@ mod mask_impl; use crate::{SimdI16, SimdI32, SimdI64, SimdI8, SimdIsize}; -mod sealed { - pub trait Sealed {} -} - -/// Helper trait for mask types. -pub trait Mask: sealed::Sealed { - /// The number of lanes for this mask. - const LANES: usize; - - /// Generates a mask with the same value in every lane. - #[must_use] - fn splat(val: bool) -> Self; -} - macro_rules! define_opaque_mask { { $(#[$attr:meta])* @@ -40,23 +26,6 @@ macro_rules! define_opaque_mask { where crate::LaneCount: crate::SupportedLaneCount; - impl sealed::Sealed for $name - where - crate::LaneCount: crate::SupportedLaneCount, - {} - - impl Mask for $name - where - crate::LaneCount: crate::SupportedLaneCount, - { - const LANES: usize = LANES; - - #[inline] - fn splat(value: bool) -> Self { - Self::splat(value) - } - } - impl_opaque_mask_reductions! { $name, $bits_ty } impl $name