about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2024-11-25 22:16:09 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2024-11-30 00:01:44 +0000
commit91c0dabca3090b3a9aa54b5976b7cc610d6f12fd (patch)
treeadaefdfa0b7ab555a00e4fa16d00fd77ace4709f /library/stdarch/crates/std_detect
parent21300c20e4617507d96f6468fadce10e4f3d391b (diff)
downloadrust-91c0dabca3090b3a9aa54b5976b7cc610d6f12fd.tar.gz
rust-91c0dabca3090b3a9aa54b5976b7cc610d6f12fd.zip
Enable `without cfg check` test in `std_detect`
Diffstat (limited to 'library/stdarch/crates/std_detect')
-rw-r--r--library/stdarch/crates/std_detect/src/detect/macros.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/library/stdarch/crates/std_detect/src/detect/macros.rs b/library/stdarch/crates/std_detect/src/detect/macros.rs
index 38c8b8068fb..23b238d1bc2 100644
--- a/library/stdarch/crates/std_detect/src/detect/macros.rs
+++ b/library/stdarch/crates/std_detect/src/detect/macros.rs
@@ -23,9 +23,8 @@ macro_rules! check_cfg_feature {
         $(cfg!(target_feature = $target_feature_lit);)*
     };
     ($feature:tt, $feature_lit:tt, without cfg check: $feature_cfg_check:literal) => {
-        // FIXME: Enable once rust-lang/rust#132577 hit's nightly
-        // #[expect(unexpected_cfgs, reason = $feature_lit)]
-        // { cfg!(target_feature = $feature_lit) }
+        #[expect(unexpected_cfgs, reason = $feature_lit)]
+        { cfg!(target_feature = $feature_lit) }
     };
 }