diff options
| author | Urgau <urgau@numericable.fr> | 2024-11-25 22:16:09 +0100 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2024-11-30 00:01:44 +0000 |
| commit | 91c0dabca3090b3a9aa54b5976b7cc610d6f12fd (patch) | |
| tree | adaefdfa0b7ab555a00e4fa16d00fd77ace4709f /library/stdarch/crates/std_detect | |
| parent | 21300c20e4617507d96f6468fadce10e4f3d391b (diff) | |
| download | rust-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.rs | 5 |
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) } }; } |
