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