Skip to content

Commit 3731120

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 e0e82ca commit 3731120

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
@@ -159,32 +159,23 @@ features! {
159159
/// Has reasonably performant unaligned vector
160160
161161
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zicsr: "zicsr";
162-
without cfg check: true;
163162
/// "Zicsr" Extension for Control and Status Register (CSR) Instructions
164163
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zicntr: "zicntr";
165-
without cfg check: true;
166164
/// "Zicntr" Extension for Base Counters and Timers
167165
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zihpm: "zihpm";
168-
without cfg check: true;
169166
/// "Zihpm" Extension for Hardware Performance Counters
170167
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zifencei: "zifencei";
171-
without cfg check: true;
172168
/// "Zifencei" Extension for Instruction-Fetch Fence
173169
174170
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zihintntl: "zihintntl";
175-
without cfg check: true;
176171
/// "Zihintntl" Extension for Non-Temporal Locality Hints
177172
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zihintpause: "zihintpause";
178-
without cfg check: true;
179173
/// "Zihintpause" Extension for Pause Hint
180174
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zimop: "zimop";
181-
without cfg check: true;
182175
/// "Zimop" Extension for May-Be-Operations
183176
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zicboz: "zicboz";
184-
without cfg check: true;
185177
/// "Zicboz" Extension for Cache-Block Zero Instruction
186178
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zicond: "zicond";
187-
without cfg check: true;
188179
/// "Zicond" Extension for Integer Conditional Operations
189180
190181
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] m: "m";
@@ -204,7 +195,6 @@ features! {
204195
without cfg check: true;
205196
/// "Zam" Extension for Misaligned Atomics
206197
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] ztso: "ztso";
207-
without cfg check: true;
208198
/// "Ztso" Extension for Total Store Ordering
209199
210200
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] f: "f";
@@ -219,7 +209,6 @@ features! {
219209
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zfhmin: "zfhmin";
220210
/// "Zfhmin" Extension for Minimal Half-Precision Floating-Point
221211
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zfa: "zfa";
222-
without cfg check: true;
223212
/// "Zfa" Extension for Additional Floating-Point Instructions
224213
225214
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zfinx: "zfinx";
@@ -234,7 +223,6 @@ features! {
234223
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] c: "c";
235224
/// "C" Extension for Compressed Instructions
236225
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zca: "zca";
237-
without cfg check: true;
238226
/// "Zca" Compressed Instructions excluding Floating-Point Loads/Stores
239227
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zcf: "zcf";
240228
without cfg check: true;
@@ -243,14 +231,11 @@ features! {
243231
without cfg check: true;
244232
/// "Zcd" Compressed Instructions for Double-Precision Floating-Point Loads/Stores
245233
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zcb: "zcb";
246-
without cfg check: true;
247234
/// "Zcb" Simple Code-size Saving Compressed Instructions
248235
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zcmop: "zcmop";
249-
without cfg check: true;
250236
/// "Zcmop" Extension for Compressed May-Be-Operations
251237
252238
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] b: "b";
253-
without cfg check: true;
254239
/// "B" Extension for Bit Manipulation
255240
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.78.0")] zba: "zba";
256241
/// "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)