Skip to content

Commit

Permalink
Merge pull request #446 from AquaEBM/master
Browse files Browse the repository at this point in the history
add rustc_const_unstable attribute to Simd::splat
  • Loading branch information
calebzulawski authored Nov 25, 2024
2 parents b049c50 + f6a2276 commit 49176ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/core_simd/src/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49176ae

Please sign in to comment.