diff options
| author | AquaEBM <AquaEBM@gmail.com> | 2024-11-25 12:44:26 +0100 |
|---|---|---|
| committer | AquaEBM <AquaEBM@gmail.com> | 2024-11-25 12:44:26 +0100 |
| commit | f6a227690ee55d77f253c87d4f312879ae578596 (patch) | |
| tree | 9ad73cbd3d596ebbe8df8cee527719f4961227c7 | |
| parent | b049c5097e515f45503ac5a8d34de5f0ef75c25e (diff) | |
| download | rust-f6a227690ee55d77f253c87d4f312879ae578596.tar.gz rust-f6a227690ee55d77f253c87d4f312879ae578596.zip | |
add rustc_const_unstable attribute to Simd::splat
| -rw-r--r-- | crates/core_simd/src/vector.rs | 1 |
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 |
