Skip to content

search_is_some: Use a regular visitor instead of ExprUseVisitor #16086

@Jarcho

Description

@Jarcho

Description

When building the suggestion, the lint is unnecessarily using ExprUseVisitor to handle the closure arg's type change. This works currently, but with rust-lang/rust#138961 this will be broken. Using a regular HIR visitor will fix this and be a better match for what the lint wants to do.

Version


Additional Labels

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingL-nurseryLint: Currently in the nursery group

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions