Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 91c0dab

Browse files
UrgauAmanieu
authored andcommitted
Enable without cfg check test in std_detect
1 parent 21300c2 commit 91c0dab

File tree

1 file changed

+2
-3
lines changed
  • library/stdarch/crates/std_detect/src/detect

1 file changed

+2
-3
lines changed

‎library/stdarch/crates/std_detect/src/detect/macros.rs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ macro_rules! check_cfg_feature {
2323
$(cfg!(target_feature = $target_feature_lit);)*
2424
};
2525
($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) }
26+
#[expect(unexpected_cfgs, reason = $feature_lit)]
27+
{ cfg!(target_feature = $feature_lit) }
2928
};
3029
}
3130

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /