1
Fork 0

Rollup merge of #132577 - Urgau:check-cfg-report-extern-macro, r=petrochenkov

Report the `unexpected_cfgs` lint in external macros

This PR marks the `unexpected_cfgs` lint as being reportable in external macros, as it's probably not the intention of the macro author to leave ineffective cfgs in the users code.

Fixes #132572

try-job: aarch64-gnu-debug
This commit is contained in:
Matthias Krüger 2024-11-19 09:19:19 +01:00 committed by GitHub
commit 47200547f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 46 additions and 8 deletions

View file

@ -3185,6 +3185,7 @@ declare_lint! {
pub UNEXPECTED_CFGS,
Warn,
"detects unexpected names and values in `#[cfg]` conditions",
report_in_external_macro
}
declare_lint! {