Allow check-cfg
to take a regex config name and values
#125351
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
F-check-cfg
--check-cfg
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Just a loose idea - some crates wind up with a combinatorial explosion of
--check-cfg
flags to pass, which is difficult to produce and leads to noisy logs. For example,compiler-builtins
has the following:Log
It would be much easier if something like the following worked:
--check-cfg 'cfg(regex("__aarch64_(swp|ldset)[248]_(relax|acq|acq_rel)"), values("optimized-c"))'
.values
could also take a regex pattern.The text was updated successfully, but these errors were encountered: