Skip to content

Commit ef776c6

Browse files
authored
Rollup merge of #152188 - cuviper:placeholder-stdarch, r=Mark-Simulacrum
Include `library/stdarch` for `CURRENT_RUSTC_VERSION` updates Our tool `replace-version-placeholder` uses the `tidy` file walker and its directory filter, but that skips `library/stdarch` which we do need for public stability markers. This PR adds a local filter function that explicitly allows that path. The commit for 1.94 `stdarch` updates is coming from beta #152187.
2 parents 9f0b29b + 001d710 commit ef776c6

File tree

12 files changed

+1228
-1222
lines changed

12 files changed

+1228
-1222
lines changed

library/stdarch/crates/core_arch/src/aarch64/neon/generated.rs

Lines changed: 105 additions & 105 deletions
Large diffs are not rendered by default.

library/stdarch/crates/core_arch/src/arm_shared/neon/generated.rs

Lines changed: 202 additions & 202 deletions
Large diffs are not rendered by default.

library/stdarch/crates/core_arch/src/arm_shared/neon/mod.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ types! {
104104
}
105105

106106
types! {
107-
#![cfg_attr(not(target_arch = "arm"), stable(feature = "stdarch_neon_fp16", since = "CURRENT_RUSTC_VERSION"))]
107+
#![cfg_attr(not(target_arch = "arm"), stable(feature = "stdarch_neon_fp16", since = "1.94.0"))]
108108
#![cfg_attr(target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800"))]
109109

110110
/// Arm-specific 64-bit wide vector of four packed `f16`.
@@ -750,7 +750,7 @@ pub struct uint32x4x4_t(
750750
#[derive(Copy, Clone, Debug)]
751751
#[cfg_attr(
752752
not(target_arch = "arm"),
753-
stable(feature = "stdarch_neon_fp16", since = "CURRENT_RUSTC_VERSION")
753+
stable(feature = "stdarch_neon_fp16", since = "1.94.0")
754754
)]
755755
#[cfg_attr(
756756
target_arch = "arm",
@@ -763,7 +763,7 @@ pub struct float16x4x2_t(pub float16x4_t, pub float16x4_t);
763763
#[derive(Copy, Clone, Debug)]
764764
#[cfg_attr(
765765
not(target_arch = "arm"),
766-
stable(feature = "stdarch_neon_fp16", since = "CURRENT_RUSTC_VERSION")
766+
stable(feature = "stdarch_neon_fp16", since = "1.94.0")
767767
)]
768768
#[cfg_attr(
769769
target_arch = "arm",
@@ -776,7 +776,7 @@ pub struct float16x4x3_t(pub float16x4_t, pub float16x4_t, pub float16x4_t);
776776
#[derive(Copy, Clone, Debug)]
777777
#[cfg_attr(
778778
not(target_arch = "arm"),
779-
stable(feature = "stdarch_neon_fp16", since = "CURRENT_RUSTC_VERSION")
779+
stable(feature = "stdarch_neon_fp16", since = "1.94.0")
780780
)]
781781
#[cfg_attr(
782782
target_arch = "arm",
@@ -794,7 +794,7 @@ pub struct float16x4x4_t(
794794
#[derive(Copy, Clone, Debug)]
795795
#[cfg_attr(
796796
not(target_arch = "arm"),
797-
stable(feature = "stdarch_neon_fp16", since = "CURRENT_RUSTC_VERSION")
797+
stable(feature = "stdarch_neon_fp16", since = "1.94.0")
798798
)]
799799
#[cfg_attr(
800800
target_arch = "arm",
@@ -807,7 +807,7 @@ pub struct float16x8x2_t(pub float16x8_t, pub float16x8_t);
807807
#[derive(Copy, Clone, Debug)]
808808
#[cfg_attr(
809809
not(target_arch = "arm"),
810-
stable(feature = "stdarch_neon_fp16", since = "CURRENT_RUSTC_VERSION")
810+
stable(feature = "stdarch_neon_fp16", since = "1.94.0")
811811
)]
812812
#[cfg_attr(
813813
target_arch = "arm",
@@ -820,7 +820,7 @@ pub struct float16x8x3_t(pub float16x8_t, pub float16x8_t, pub float16x8_t);
820820
#[derive(Copy, Clone, Debug)]
821821
#[cfg_attr(
822822
not(target_arch = "arm"),
823-
stable(feature = "stdarch_neon_fp16", since = "CURRENT_RUSTC_VERSION")
823+
stable(feature = "stdarch_neon_fp16", since = "1.94.0")
824824
)]
825825
#[cfg_attr(
826826
target_arch = "arm",

library/stdarch/crates/core_arch/src/x86/avx512fp16.rs

Lines changed: 881 additions & 881 deletions
Large diffs are not rendered by default.

library/stdarch/crates/core_arch/src/x86/avxneconvert.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub unsafe fn _mm256_cvtneebf16_ps(a: *const __m256bh) -> __m256 {
8787
#[inline]
8888
#[target_feature(enable = "avxneconvert")]
8989
#[cfg_attr(test, assert_instr(vcvtneeph2ps))]
90-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
90+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
9191
pub unsafe fn _mm_cvtneeph_ps(a: *const __m128h) -> __m128 {
9292
transmute(cvtneeph2ps_128(a))
9393
}
@@ -99,7 +99,7 @@ pub unsafe fn _mm_cvtneeph_ps(a: *const __m128h) -> __m128 {
9999
#[inline]
100100
#[target_feature(enable = "avxneconvert")]
101101
#[cfg_attr(test, assert_instr(vcvtneeph2ps))]
102-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
102+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
103103
pub unsafe fn _mm256_cvtneeph_ps(a: *const __m256h) -> __m256 {
104104
transmute(cvtneeph2ps_256(a))
105105
}
@@ -135,7 +135,7 @@ pub unsafe fn _mm256_cvtneobf16_ps(a: *const __m256bh) -> __m256 {
135135
#[inline]
136136
#[target_feature(enable = "avxneconvert")]
137137
#[cfg_attr(test, assert_instr(vcvtneoph2ps))]
138-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
138+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
139139
pub unsafe fn _mm_cvtneoph_ps(a: *const __m128h) -> __m128 {
140140
transmute(cvtneoph2ps_128(a))
141141
}
@@ -147,7 +147,7 @@ pub unsafe fn _mm_cvtneoph_ps(a: *const __m128h) -> __m128 {
147147
#[inline]
148148
#[target_feature(enable = "avxneconvert")]
149149
#[cfg_attr(test, assert_instr(vcvtneoph2ps))]
150-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
150+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
151151
pub unsafe fn _mm256_cvtneoph_ps(a: *const __m256h) -> __m256 {
152152
transmute(cvtneoph2ps_256(a))
153153
}

library/stdarch/crates/core_arch/src/x86/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ types! {
401401
}
402402

403403
types! {
404-
#![stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
404+
#![stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
405405

406406
/// 128-bit wide set of 8 `f16` types, x86-specific
407407
///
@@ -768,7 +768,7 @@ mod avxneconvert;
768768
pub use self::avxneconvert::*;
769769

770770
mod avx512fp16;
771-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
771+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
772772
pub use self::avx512fp16::*;
773773

774774
mod kl;

library/stdarch/crates/core_arch/src/x86_64/avx512fp16.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use stdarch_test::assert_instr;
1010
#[inline]
1111
#[target_feature(enable = "avx512fp16")]
1212
#[cfg_attr(test, assert_instr(vcvtsi2sh))]
13-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
13+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
1414
pub fn _mm_cvti64_sh(a: __m128h, b: i64) -> __m128h {
1515
unsafe { vcvtsi642sh(a, b, _MM_FROUND_CUR_DIRECTION) }
1616
}
@@ -32,7 +32,7 @@ pub fn _mm_cvti64_sh(a: __m128h, b: i64) -> __m128h {
3232
#[target_feature(enable = "avx512fp16")]
3333
#[cfg_attr(test, assert_instr(vcvtsi2sh, ROUNDING = 8))]
3434
#[rustc_legacy_const_generics(2)]
35-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
35+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
3636
pub fn _mm_cvt_roundi64_sh<const ROUNDING: i32>(a: __m128h, b: i64) -> __m128h {
3737
unsafe {
3838
static_assert_rounding!(ROUNDING);
@@ -48,7 +48,7 @@ pub fn _mm_cvt_roundi64_sh<const ROUNDING: i32>(a: __m128h, b: i64) -> __m128h {
4848
#[inline]
4949
#[target_feature(enable = "avx512fp16")]
5050
#[cfg_attr(test, assert_instr(vcvtusi2sh))]
51-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
51+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
5252
pub fn _mm_cvtu64_sh(a: __m128h, b: u64) -> __m128h {
5353
unsafe { vcvtusi642sh(a, b, _MM_FROUND_CUR_DIRECTION) }
5454
}
@@ -70,7 +70,7 @@ pub fn _mm_cvtu64_sh(a: __m128h, b: u64) -> __m128h {
7070
#[target_feature(enable = "avx512fp16")]
7171
#[cfg_attr(test, assert_instr(vcvtusi2sh, ROUNDING = 8))]
7272
#[rustc_legacy_const_generics(2)]
73-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
73+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
7474
pub fn _mm_cvt_roundu64_sh<const ROUNDING: i32>(a: __m128h, b: u64) -> __m128h {
7575
unsafe {
7676
static_assert_rounding!(ROUNDING);
@@ -85,7 +85,7 @@ pub fn _mm_cvt_roundu64_sh<const ROUNDING: i32>(a: __m128h, b: u64) -> __m128h {
8585
#[inline]
8686
#[target_feature(enable = "avx512fp16")]
8787
#[cfg_attr(test, assert_instr(vcvtsh2si))]
88-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
88+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
8989
pub fn _mm_cvtsh_i64(a: __m128h) -> i64 {
9090
unsafe { vcvtsh2si64(a, _MM_FROUND_CUR_DIRECTION) }
9191
}
@@ -106,7 +106,7 @@ pub fn _mm_cvtsh_i64(a: __m128h) -> i64 {
106106
#[target_feature(enable = "avx512fp16")]
107107
#[cfg_attr(test, assert_instr(vcvtsh2si, ROUNDING = 8))]
108108
#[rustc_legacy_const_generics(1)]
109-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
109+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
110110
pub fn _mm_cvt_roundsh_i64<const ROUNDING: i32>(a: __m128h) -> i64 {
111111
unsafe {
112112
static_assert_rounding!(ROUNDING);
@@ -121,7 +121,7 @@ pub fn _mm_cvt_roundsh_i64<const ROUNDING: i32>(a: __m128h) -> i64 {
121121
#[inline]
122122
#[target_feature(enable = "avx512fp16")]
123123
#[cfg_attr(test, assert_instr(vcvtsh2usi))]
124-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
124+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
125125
pub fn _mm_cvtsh_u64(a: __m128h) -> u64 {
126126
unsafe { vcvtsh2usi64(a, _MM_FROUND_CUR_DIRECTION) }
127127
}
@@ -142,7 +142,7 @@ pub fn _mm_cvtsh_u64(a: __m128h) -> u64 {
142142
#[target_feature(enable = "avx512fp16")]
143143
#[cfg_attr(test, assert_instr(vcvtsh2usi, ROUNDING = 8))]
144144
#[rustc_legacy_const_generics(1)]
145-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
145+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
146146
pub fn _mm_cvt_roundsh_u64<const ROUNDING: i32>(a: __m128h) -> u64 {
147147
unsafe {
148148
static_assert_rounding!(ROUNDING);
@@ -157,7 +157,7 @@ pub fn _mm_cvt_roundsh_u64<const ROUNDING: i32>(a: __m128h) -> u64 {
157157
#[inline]
158158
#[target_feature(enable = "avx512fp16")]
159159
#[cfg_attr(test, assert_instr(vcvttsh2si))]
160-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
160+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
161161
pub fn _mm_cvttsh_i64(a: __m128h) -> i64 {
162162
unsafe { vcvttsh2si64(a, _MM_FROUND_CUR_DIRECTION) }
163163
}
@@ -172,7 +172,7 @@ pub fn _mm_cvttsh_i64(a: __m128h) -> i64 {
172172
#[target_feature(enable = "avx512fp16")]
173173
#[cfg_attr(test, assert_instr(vcvttsh2si, SAE = 8))]
174174
#[rustc_legacy_const_generics(1)]
175-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
175+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
176176
pub fn _mm_cvtt_roundsh_i64<const SAE: i32>(a: __m128h) -> i64 {
177177
unsafe {
178178
static_assert_sae!(SAE);
@@ -187,7 +187,7 @@ pub fn _mm_cvtt_roundsh_i64<const SAE: i32>(a: __m128h) -> i64 {
187187
#[inline]
188188
#[target_feature(enable = "avx512fp16")]
189189
#[cfg_attr(test, assert_instr(vcvttsh2usi))]
190-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
190+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
191191
pub fn _mm_cvttsh_u64(a: __m128h) -> u64 {
192192
unsafe { vcvttsh2usi64(a, _MM_FROUND_CUR_DIRECTION) }
193193
}
@@ -202,7 +202,7 @@ pub fn _mm_cvttsh_u64(a: __m128h) -> u64 {
202202
#[target_feature(enable = "avx512fp16")]
203203
#[cfg_attr(test, assert_instr(vcvttsh2usi, SAE = 8))]
204204
#[rustc_legacy_const_generics(1)]
205-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
205+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
206206
pub fn _mm_cvtt_roundsh_u64<const SAE: i32>(a: __m128h) -> u64 {
207207
unsafe {
208208
static_assert_sae!(SAE);

library/stdarch/crates/core_arch/src/x86_64/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ mod bt;
7575
pub use self::bt::*;
7676

7777
mod avx512fp16;
78-
#[stable(feature = "stdarch_x86_avx512fp16", since = "CURRENT_RUSTC_VERSION")]
78+
#[stable(feature = "stdarch_x86_avx512fp16", since = "1.94.0")]
7979
pub use self::avx512fp16::*;
8080

8181
mod amx;

library/stdarch/crates/stdarch-gen-arm/spec/neon/aarch64.spec.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ auto_llvm_sign_conversion: false
1313
neon-stable: &neon-stable
1414
FnCall: [stable, ['feature = "neon_intrinsics"', 'since = "1.59.0"']]
1515

16-
# #[stable(feature = "stdarch_neon_fp16", since = "CURRENT_RUSTC_VERSION")]
16+
# #[stable(feature = "stdarch_neon_fp16", since = "1.94.0")]
1717
neon-stable-fp16: &neon-stable-fp16
18-
FnCall: [stable, ['feature = "stdarch_neon_fp16"', 'since = "CURRENT_RUSTC_VERSION"']]
18+
FnCall: [stable, ['feature = "stdarch_neon_fp16"', 'since = "1.94.0"']]
1919

2020
# #[cfg(not(target_arch = "arm64ec"))]
2121
target-not-arm64ec: &target-not-arm64ec

library/stdarch/crates/stdarch-gen-arm/spec/neon/arm_shared.spec.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ auto_big_endian: true
1010
neon-stable: &neon-stable
1111
FnCall: [stable, ['feature = "neon_intrinsics"', 'since = "1.59.0"']]
1212

13-
# #[stable(feature = "stdarch_neon_fp16", since = "CURRENT_RUSTC_VERSION")]
13+
# #[stable(feature = "stdarch_neon_fp16", since = "1.94.0")]
1414
neon-stable-fp16: &neon-stable-fp16
15-
FnCall: [stable, ['feature = "stdarch_neon_fp16"', 'since = "CURRENT_RUSTC_VERSION"']]
15+
FnCall: [stable, ['feature = "stdarch_neon_fp16"', 'since = "1.94.0"']]
1616

1717
# #[cfg_attr(target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800"))]
1818
neon-cfg-arm-unstable: &neon-cfg-arm-unstable
@@ -55,9 +55,9 @@ neon-target-aarch64-arm64ec: &neon-target-aarch64-arm64ec
5555
neon-not-arm-stable: &neon-not-arm-stable
5656
FnCall: [cfg_attr, [{ FnCall: [not, ['target_arch = "arm"']]}, {FnCall: [stable, ['feature = "neon_intrinsics"', 'since = "1.59.0"']]}]]
5757

58-
# #[cfg_attr(not(target_arch = "arm"), stable(feature = "stdarch_neon_fp16", since = "CURRENT_RUSTC_VERSION"))]
58+
# #[cfg_attr(not(target_arch = "arm"), stable(feature = "stdarch_neon_fp16", since = "1.94.0"))]
5959
neon-not-arm-stable-fp16: &neon-not-arm-stable-fp16
60-
FnCall: [cfg_attr, [{ FnCall: [not, ['target_arch = "arm"']]}, {FnCall: [stable, ['feature = "stdarch_neon_fp16"', 'since = "CURRENT_RUSTC_VERSION"']]}]]
60+
FnCall: [cfg_attr, [{ FnCall: [not, ['target_arch = "arm"']]}, {FnCall: [stable, ['feature = "stdarch_neon_fp16"', 'since = "1.94.0"']]}]]
6161

6262
# #[cfg_attr(all(test, not(target_env = "msvc"))]
6363
msvc-disabled: &msvc-disabled

0 commit comments

Comments
 (0)