Skip to content

Use diagnostic_item instead of match_def_path in lints #76813

Closed
@estebank

Description

@estebank

In multiple lints we currently use match_def_path to perform checks for specific paths. We should be using is_diagnostic_item instead (which is newer than those lints).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-cleanupCategory: PRs that clean code up or issues documenting cleanup.P-lowLow priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions