about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAquaEBM <AquaEBM@gmail.com>2024-11-25 12:44:26 +0100
committerAquaEBM <AquaEBM@gmail.com>2024-11-25 12:44:26 +0100
commitf6a227690ee55d77f253c87d4f312879ae578596 (patch)
tree9ad73cbd3d596ebbe8df8cee527719f4961227c7
parentb049c5097e515f45503ac5a8d34de5f0ef75c25e (diff)
downloadrust-f6a227690ee55d77f253c87d4f312879ae578596.tar.gz
rust-f6a227690ee55d77f253c87d4f312879ae578596.zip
add rustc_const_unstable attribute to Simd::splat
-rw-r--r--crates/core_simd/src/vector.rs1
1 files changed, 1 insertions, 0 deletions
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<T, const N: usize>(value: T) -> Simd<T, N>
         where