Skip to content

Commit d9b91b4

Browse files
committed
add a comment explaining feature detection stability
1 parent f2e262f commit d9b91b4

File tree

1 file changed

+4
-0
lines changed
  • crates/std_detect/src/detect/arch

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ features! {
114114
/// AVX (Advanced Vector Extensions)
115115
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx2: "avx2";
116116
/// AVX2 (Advanced Vector Extensions 2)
117+
// Detection for the AVX-512 features below was accidentally stabilized in
118+
// Rust 1.27.0, even though the corresponding intrinsics are still unstable
119+
// or unimplemeted. There are stable callers who rely on detection support,
120+
// e.g. to call AVX-512 C code via FFI.
117121
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512f: "avx512f" ;
118122
/// AVX-512 F (Foundation)
119123
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512cd: "avx512cd" ;

0 commit comments

Comments
 (0)