Skip to content

Commit

Permalink
Enable without cfg check test in std_detect
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Nov 25, 2024
1 parent f3f4e1e commit 62dadbd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/std_detect/src/detect/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
};
}

Expand Down

0 comments on commit 62dadbd

Please sign in to comment.