Skip to content

Commit

Permalink
add rustc_const_unstable attribute to Simd::splat
Browse files Browse the repository at this point in the history
  • Loading branch information
AquaEBM committed Nov 25, 2024
1 parent b049c50 commit f6a2276
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 f6a2276

Please sign in to comment.