Skip to content

Commit 2867363

Browse files
committed
Check cfg on features that stage0 compiler support
Since the bootstrap compiler of Rust is bumped to the commit 5dadfd5c417f0b66816cb7ca662859e2c8751fb3 (version 1.88.0-beta.3 2025-05-11), some features should be safe to enable cfg checks. RISC-V Features: * "zicsr" * "zicntr" * "zihpm" * "zifencei" * "zihintntl" * "zihintpause" * "zimop" * "zicboz" * "zicond" * "ztso" * "zfa" * "zca" * "zcb" * "zcmop" * "b" x86 Features: * "amx-avx512" * "amx-fp8" * "amx-movrs" * "amx-tf32" * "amx-transpose"
1 parent 7230afc commit 2867363

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

crates/std_detect/src/detect/arch/riscv.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -144,32 +144,23 @@ features! {
144144
/// Has reasonably performant unaligned vector
145145
146146
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zicsr: "zicsr";
147-
without cfg check: true;
148147
/// "Zicsr" Extension for Control and Status Register (CSR) Instructions
149148
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zicntr: "zicntr";
150-
without cfg check: true;
151149
/// "Zicntr" Extension for Base Counters and Timers
152150
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zihpm: "zihpm";
153-
without cfg check: true;
154151
/// "Zihpm" Extension for Hardware Performance Counters
155152
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zifencei: "zifencei";
156-
without cfg check: true;
157153
/// "Zifencei" Extension for Instruction-Fetch Fence
158154
159155
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zihintntl: "zihintntl";
160-
without cfg check: true;
161156
/// "Zihintntl" Extension for Non-Temporal Locality Hints
162157
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zihintpause: "zihintpause";
163-
without cfg check: true;
164158
/// "Zihintpause" Extension for Pause Hint
165159
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zimop: "zimop";
166-
without cfg check: true;
167160
/// "Zimop" Extension for May-Be-Operations
168161
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zicboz: "zicboz";
169-
without cfg check: true;
170162
/// "Zicboz" Extension for Cache-Block Zero Instruction
171163
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zicond: "zicond";
172-
without cfg check: true;
173164
/// "Zicond" Extension for Integer Conditional Operations
174165
175166
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] m: "m";
@@ -189,7 +180,6 @@ features! {
189180
without cfg check: true;
190181
/// "Zam" Extension for Misaligned Atomics
191182
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] ztso: "ztso";
192-
without cfg check: true;
193183
/// "Ztso" Extension for Total Store Ordering
194184
195185
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] f: "f";
@@ -204,7 +194,6 @@ features! {
204194
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zfhmin: "zfhmin";
205195
/// "Zfhmin" Extension for Minimal Half-Precision Floating-Point
206196
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zfa: "zfa";
207-
without cfg check: true;
208197
/// "Zfa" Extension for Additional Floating-Point Instructions
209198
210199
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zfinx: "zfinx";
@@ -219,7 +208,6 @@ features! {
219208
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] c: "c";
220209
/// "C" Extension for Compressed Instructions
221210
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zca: "zca";
222-
without cfg check: true;
223211
/// "Zca" Compressed Instructions excluding Floating-Point Loads/Stores
224212
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zcf: "zcf";
225213
without cfg check: true;
@@ -228,14 +216,11 @@ features! {
228216
without cfg check: true;
229217
/// "Zcd" Compressed Instructions for Double-Precision Floating-Point Loads/Stores
230218
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zcb: "zcb";
231-
without cfg check: true;
232219
/// "Zcb" Simple Code-size Saving Compressed Instructions
233220
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zcmop: "zcmop";
234-
without cfg check: true;
235221
/// "Zcmop" Extension for Compressed May-Be-Operations
236222
237223
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] b: "b";
238-
without cfg check: true;
239224
/// "B" Extension for Bit Manipulation
240225
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zba: "zba";
241226
/// "Zba" Extension for Address Generation

crates/std_detect/src/detect/arch/x86.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,19 +224,14 @@ features! {
224224
@FEATURE: #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] amx_complex: "amx-complex";
225225
/// AMX-COMPLEX (Complex number Operations)
226226
@FEATURE: #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] amx_avx512: "amx-avx512";
227-
without cfg check: true;
228227
/// AMX-AVX512 (AVX512 operations extended to matrices)
229228
@FEATURE: #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] amx_fp8: "amx-fp8";
230-
without cfg check: true;
231229
/// AMX-FP8 (Float8 Operations)
232230
@FEATURE: #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] amx_movrs: "amx-movrs";
233-
without cfg check: true;
234231
/// AMX-MOVRS (Matrix MOVERS operations)
235232
@FEATURE: #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] amx_tf32: "amx-tf32";
236-
without cfg check: true;
237233
/// AMX-TF32 (TensorFloat32 Operations)
238234
@FEATURE: #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] amx_transpose: "amx-transpose";
239-
without cfg check: true;
240235
/// AMX-TRANSPOSE (Matrix Transpose Operations)
241236
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] f16c: "f16c";
242237
/// F16C (Conversions between IEEE-754 `binary16` and `binary32` formats)

0 commit comments

Comments
 (0)