@@ -51,7 +51,8 @@ macro_rules! conversions {
51
51
$(
52
52
impl $ty {
53
53
#[ inline( always) ]
54
- #[ rustc_const_stable( feature = "wasm_simd_const" , since = "1.56.0" ) ]
54
+ // FIXME remove next line when const-stability v2 migration is done
55
+ #[ rustc_const_unstable( feature = "wasm_simd_const_internals" , issue = "none" ) ]
55
56
pub ( crate ) const fn v128( self ) -> v128 {
56
57
unsafe { mem:: transmute( self ) }
57
58
}
@@ -664,6 +665,7 @@ pub unsafe fn v128_store64_lane<const L: usize>(v: v128, m: *mut u64) {
664
665
#[ doc( alias( "v128.const" ) ) ]
665
666
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
666
667
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
668
+ #[ rustc_allow_const_fn_unstable( wasm_simd_const_internals) ] // FIXME remove when const-stability v2 migration is done
667
669
pub const fn i8x16 (
668
670
a0 : i8 ,
669
671
a1 : i8 ,
@@ -696,6 +698,7 @@ pub const fn i8x16(
696
698
#[ doc( alias( "v128.const" ) ) ]
697
699
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
698
700
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
701
+ #[ rustc_allow_const_fn_unstable( wasm_simd_const_internals) ] // FIXME remove when const-stability v2 migration is done
699
702
pub const fn u8x16 (
700
703
a0 : u8 ,
701
704
a1 : u8 ,
@@ -742,6 +745,7 @@ pub const fn u8x16(
742
745
#[ doc( alias( "v128.const" ) ) ]
743
746
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
744
747
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
748
+ #[ rustc_allow_const_fn_unstable( wasm_simd_const_internals) ] // FIXME remove when const-stability v2 migration is done
745
749
pub const fn i16x8 ( a0 : i16 , a1 : i16 , a2 : i16 , a3 : i16 , a4 : i16 , a5 : i16 , a6 : i16 , a7 : i16 ) -> v128 {
746
750
simd:: i16x8:: new ( a0, a1, a2, a3, a4, a5, a6, a7) . v128 ( )
747
751
}
@@ -754,6 +758,7 @@ pub const fn i16x8(a0: i16, a1: i16, a2: i16, a3: i16, a4: i16, a5: i16, a6: i16
754
758
#[ doc( alias( "v128.const" ) ) ]
755
759
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
756
760
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
761
+ #[ rustc_allow_const_fn_unstable( wasm_simd_const_internals) ] // FIXME remove when const-stability v2 migration is done
757
762
pub const fn u16x8 ( a0 : u16 , a1 : u16 , a2 : u16 , a3 : u16 , a4 : u16 , a5 : u16 , a6 : u16 , a7 : u16 ) -> v128 {
758
763
simd:: u16x8:: new ( a0, a1, a2, a3, a4, a5, a6, a7) . v128 ( )
759
764
}
@@ -767,6 +772,7 @@ pub const fn u16x8(a0: u16, a1: u16, a2: u16, a3: u16, a4: u16, a5: u16, a6: u16
767
772
#[ doc( alias( "v128.const" ) ) ]
768
773
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
769
774
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
775
+ #[ rustc_allow_const_fn_unstable( wasm_simd_const_internals) ] // FIXME remove when const-stability v2 migration is done
770
776
pub const fn i32x4 ( a0 : i32 , a1 : i32 , a2 : i32 , a3 : i32 ) -> v128 {
771
777
simd:: i32x4:: new ( a0, a1, a2, a3) . v128 ( )
772
778
}
@@ -779,6 +785,7 @@ pub const fn i32x4(a0: i32, a1: i32, a2: i32, a3: i32) -> v128 {
779
785
#[ doc( alias( "v128.const" ) ) ]
780
786
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
781
787
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
788
+ #[ rustc_allow_const_fn_unstable( wasm_simd_const_internals) ] // FIXME remove when const-stability v2 migration is done
782
789
pub const fn u32x4 ( a0 : u32 , a1 : u32 , a2 : u32 , a3 : u32 ) -> v128 {
783
790
simd:: u32x4:: new ( a0, a1, a2, a3) . v128 ( )
784
791
}
@@ -792,6 +799,7 @@ pub const fn u32x4(a0: u32, a1: u32, a2: u32, a3: u32) -> v128 {
792
799
#[ doc( alias( "v128.const" ) ) ]
793
800
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
794
801
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
802
+ #[ rustc_allow_const_fn_unstable( wasm_simd_const_internals) ] // FIXME remove when const-stability v2 migration is done
795
803
pub const fn i64x2 ( a0 : i64 , a1 : i64 ) -> v128 {
796
804
simd:: i64x2:: new ( a0, a1) . v128 ( )
797
805
}
@@ -804,6 +812,7 @@ pub const fn i64x2(a0: i64, a1: i64) -> v128 {
804
812
#[ doc( alias( "v128.const" ) ) ]
805
813
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
806
814
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
815
+ #[ rustc_allow_const_fn_unstable( wasm_simd_const_internals) ] // FIXME remove when const-stability v2 migration is done
807
816
pub const fn u64x2 ( a0 : u64 , a1 : u64 ) -> v128 {
808
817
simd:: u64x2:: new ( a0, a1) . v128 ( )
809
818
}
@@ -817,6 +826,7 @@ pub const fn u64x2(a0: u64, a1: u64) -> v128 {
817
826
#[ doc( alias( "v128.const" ) ) ]
818
827
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
819
828
#[ rustc_const_stable( feature = "wasm_simd_const" , since = "1.56.0" ) ]
829
+ #[ rustc_allow_const_fn_unstable( wasm_simd_const_internals) ] // FIXME remove when const-stability v2 migration is done
820
830
pub const fn f32x4 ( a0 : f32 , a1 : f32 , a2 : f32 , a3 : f32 ) -> v128 {
821
831
simd:: f32x4:: new ( a0, a1, a2, a3) . v128 ( )
822
832
}
@@ -830,6 +840,7 @@ pub const fn f32x4(a0: f32, a1: f32, a2: f32, a3: f32) -> v128 {
830
840
#[ doc( alias( "v128.const" ) ) ]
831
841
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
832
842
#[ rustc_const_stable( feature = "wasm_simd_const" , since = "1.56.0" ) ]
843
+ #[ rustc_allow_const_fn_unstable( wasm_simd_const_internals) ] // FIXME remove when const-stability v2 migration is done
833
844
pub const fn f64x2 ( a0 : f64 , a1 : f64 ) -> v128 {
834
845
simd:: f64x2:: new ( a0, a1) . v128 ( )
835
846
}
0 commit comments