Skip to content

Commit b2e701f

Browse files
committed
Make SIMD intrinsics available in const-contexts
1 parent 3062cbb commit b2e701f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/pass/intrinsics/portable-simd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl<T: Copy, const N: usize> PackedSimd<T, N> {
6060

6161
#[rustc_intrinsic]
6262
#[rustc_nounwind]
63-
pub unsafe fn simd_shuffle_const_generic<T, U, const IDX: &'static [u32]>(x: T, y: T) -> U;
63+
pub const unsafe fn simd_shuffle_const_generic<T, U, const IDX: &'static [u32]>(x: T, y: T) -> U;
6464

6565
fn simd_ops_f16() {
6666
use intrinsics::*;

0 commit comments

Comments
 (0)