Skip to content

unused_patterns lint  #54538

Closed
Closed
@nikomatsakis

Description

@nikomatsakis

As @scottmcm pointed out here, the unused_parens lints should be extended to also catch unused parentheses in patterns:

    match (1) { // Warns, as expected
        (_) => {} // Doesn't warn, but should for consistency
    }

Play

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-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