From b4f54a004c892e51ee8dcc6c7c807d444d4e4af0 Mon Sep 17 00:00:00 2001 From: Martin Othamar Date: Fri, 30 Jan 2026 20:15:57 +0100 Subject: [PATCH] fix: build on latest nightly (1.95.0-nightly) --- benches/main.rs | 1 - examples/_internal/dasm.rs | 1 - examples/_internal/practrand.rs | 1 - src/lib.rs | 5 ----- src/portable/mod.rs | 5 +---- 5 files changed, 1 insertion(+), 12 deletions(-) diff --git a/benches/main.rs b/benches/main.rs index 86c8315..abd456f 100644 --- a/benches/main.rs +++ b/benches/main.rs @@ -2,7 +2,6 @@ #![allow(unused_imports)] #![allow(unused_variables)] #![feature(portable_simd)] -#![feature(stdarch_x86_avx512)] use std::arch::x86_64::*; use std::mem; diff --git a/examples/_internal/dasm.rs b/examples/_internal/dasm.rs index 279e67e..0f184bb 100644 --- a/examples/_internal/dasm.rs +++ b/examples/_internal/dasm.rs @@ -1,4 +1,3 @@ -#![feature(stdarch_x86_avx512)] #![feature(portable_simd)] use std::arch::x86_64::*; diff --git a/examples/_internal/practrand.rs b/examples/_internal/practrand.rs index 057b2b4..b47fc13 100644 --- a/examples/_internal/practrand.rs +++ b/examples/_internal/practrand.rs @@ -3,7 +3,6 @@ #![allow(unused_variables)] #![allow(unused_mut)] #![feature(portable_simd)] -#![feature(stdarch_x86_avx512)] use std::io::{ErrorKind, Write}; diff --git a/src/lib.rs b/src/lib.rs index c0ccc98..1280166 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -113,11 +113,6 @@ //! //! There is also some inline assembly used, where the C-style intrinsics haven't been exposed as Rust APIs in `std::arch`. -// stdarch_x86_avx512 feature is required for some of the AVX512 intrinsisc -#![cfg_attr( - all(target_arch = "x86_64", target_feature = "avx512f", target_feature = "avx512dq"), - feature(stdarch_x86_avx512) -)] #![feature(portable_simd)] pub mod portable; diff --git a/src/portable/mod.rs b/src/portable/mod.rs index 11ebbcd..e5f5630 100644 --- a/src/portable/mod.rs +++ b/src/portable/mod.rs @@ -2,7 +2,7 @@ use std::{ fmt::Debug, mem, ops::{BitOr, Shl, Shr, Sub}, - simd::{LaneCount, Simd, SimdElement, SupportedLaneCount}, + simd::{Simd, SimdElement}, }; pub use simdrand::*; @@ -19,8 +19,6 @@ mod xoshiro256plusx8; #[inline(always)] fn read_u64_into_vec(src: &[u8]) -> Simd -where - LaneCount: SupportedLaneCount, { const SIZE: usize = mem::size_of::(); assert!(src.len() == SIZE * N); @@ -39,7 +37,6 @@ where fn rotate_left(x: Simd, k: T) -> Simd where T: SimdElement + Sub, - LaneCount: SupportedLaneCount, usize: TryInto, >::Error: Debug, Simd: Shl, Output = Simd>,