Use diagnostic_item instead of match_def_path in lints #76813
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In multiple lints we currently use
match_def_path
to perform checks for specific paths. We should be usingis_diagnostic_item
instead (which is newer than those lints).The text was updated successfully, but these errors were encountered: