Skip to content

Commit 32fcab5

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

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ 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. There are stable callers who rely on them, even though the
119+
// corresponding intrinsics are still unstable or unimplemented.
117120
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512f: "avx512f" ;
118121
/// AVX-512 F (Foundation)
119122
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512cd: "avx512cd" ;

0 commit comments

Comments
 (0)