From f6a227690ee55d77f253c87d4f312879ae578596 Mon Sep 17 00:00:00 2001 From: AquaEBM Date: Mon, 25 Nov 2024 12:44:26 +0100 Subject: [PATCH] add rustc_const_unstable attribute to Simd::splat --- crates/core_simd/src/vector.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/core_simd/src/vector.rs b/crates/core_simd/src/vector.rs index fac11d66e1b..6518927db61 100644 --- a/crates/core_simd/src/vector.rs +++ b/crates/core_simd/src/vector.rs @@ -144,6 +144,7 @@ where /// assert_eq!(v.as_array(), &[8, 8, 8, 8]); /// ``` #[inline] + #[rustc_const_unstable(feature = "portable_simd", issue = "86656")] pub const fn splat(value: T) -> Self { const fn splat_const(value: T) -> Simd where