We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
without cfg check
std_detect
1 parent ce89591 commit 4d81b62Copy full SHA for 4d81b62
crates/std_detect/src/detect/macros.rs
@@ -23,9 +23,8 @@ macro_rules! check_cfg_feature {
23
$(cfg!(target_feature = $target_feature_lit);)*
24
};
25
($feature:tt, $feature_lit:tt, without cfg check: $feature_cfg_check:literal) => {
26
- // FIXME: Enable once rust-lang/rust#132577 hit's nightly
27
- // #[expect(unexpected_cfgs, reason = $feature_lit)]
28
- // { cfg!(target_feature = $feature_lit) }
+ #[expect(unexpected_cfgs, reason = $feature_lit)]
+ { cfg!(target_feature = $feature_lit) }
29
30
}
31
0 commit comments