Merge pull request #446 from AquaEBM/master

add rustc_const_unstable attribute to Simd::splat
This commit is contained in:
Caleb Zulawski 2024-11-25 09:29:28 -05:00 committed by GitHub
commit 49176aebc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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