Remove the pre-expansion pass #15980
Open
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Fixes #13007
deprecated_cfg_attrnow also lints inner attributes since it can catch the crate level ones, the suggestion is nowMaybeIncorrectas there were some existing cases where the suggestion isn't valid and this adds some new onesdeprecated_clippy_cfg_attrusesstripped_cfg_itemsin addition to a regular early pass as it will typically be in acfgthat evaluates to falsenon_minimal_cfgcan't usestripped_cfg_itemshere though since it only stores the part of thecfgthat evaluated to false whereas the lint needs the wider context, this means the lint no longer fires on code that iscfgd out, which may or may not be expectednon_minimal_cfgnow also lintscfg_attrconditions and lints both emptyany()andall(), suggesting to replace them withtrue/falseas long as the MSRV is 1.88 (rust-lang/rust#138632)changelog: [
non_minimal_cfg] now lints emptyany()and conditions in#[cfg_attr]s