From 62dadbdeaa19aabf634bc29c9859d0d2edd75cc2 Mon Sep 17 00:00:00 2001 From: Urgau Date: Mon, 25 Nov 2024 22:16:09 +0100 Subject: [PATCH] Enable `without cfg check` test in `std_detect` --- crates/std_detect/src/detect/macros.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/std_detect/src/detect/macros.rs b/crates/std_detect/src/detect/macros.rs index 38c8b8068f..23b238d1bc 100644 --- a/crates/std_detect/src/detect/macros.rs +++ b/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) } }; }