File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 37
37
sha512_sm_x86,
38
38
x86_amx_intrinsics,
39
39
f16,
40
- rustc_allow_const_fn_unstable
40
+ rustc_allow_const_fn_unstable,
41
+ wasm_simd_const_internals
41
42
) ]
42
43
#![ cfg_attr( test, feature( test, abi_vectorcall, stdarch_internal) ) ]
43
44
#![ deny( clippy:: missing_inline_in_public_items) ]
73
74
stdarch_loongarch_feature_detection
74
75
)
75
76
) ]
76
- #![ cfg_attr(
77
- any( target_arch = "wasm32" , target_arch = "wasm64" , doc) ,
78
- feature( wasm_simd_const_internals)
79
- ) ]
80
77
81
78
#[ cfg( test) ]
82
79
#[ macro_use]
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ macro_rules! simd_ty {
11
11
#[ allow( clippy:: use_self) ]
12
12
impl $id {
13
13
#[ inline( always) ]
14
+ #[ rustc_const_unstable( feature = "wasm_simd_const_internals" , issue = "none" ) ] // FIXME remove when const-stability v2 migration is done
14
15
pub ( crate ) const fn new( $( $param_name: $elem_type) ,* ) -> Self {
15
16
$id( [ $( $param_name) ,* ] )
16
17
}
@@ -52,11 +53,13 @@ macro_rules! simd_m_ty {
52
53
#[ allow( clippy:: use_self) ]
53
54
impl $id {
54
55
#[ inline( always) ]
56
+ #[ rustc_const_unstable( feature = "wasm_simd_const_internals" , issue = "none" ) ] // FIXME remove when const-stability v2 migration is done
55
57
const fn bool_to_internal( x: bool ) -> $elem_type {
56
58
[ 0 as $elem_type, !( 0 as $elem_type) ] [ x as usize ]
57
59
}
58
60
59
61
#[ inline( always) ]
62
+ #[ rustc_const_unstable( feature = "wasm_simd_const_internals" , issue = "none" ) ] // FIXME remove when const-stability v2 migration is done
60
63
pub ( crate ) const fn new( $( $param_name: bool ) ,* ) -> Self {
61
64
$id( [ $( Self :: bool_to_internal( $param_name) ) ,* ] )
62
65
}
You can’t perform that action at this time.
0 commit comments