Skip to content

Extend overlapping ranges lint to cover cases with more than a single element overlapping #65477

Open
@estebank

Description

@estebank

#64007 introduces an overlapping ranges lint that triggers only if the beginning or the end overlap with another arms' pattern, like in 0..10/9..20. There should be a conversation on whether it should also trigger when the overlap is beyond that, like in 0..10/5..15.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-exhaustiveness-checkingRelating to exhaustiveness / usefulness checking of patternsA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.I-needs-decisionIssue: In need of a decision.T-langRelevant to the language 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