Skip to content

Extend rustc_on_unimplemented to query for closures #48534

Open
@estebank

Description

@estebank

Add a filter to rustc_on_unimplemented to allow the querying for the existence of a closure in the requirement chain. This should allow handling #24909 and #33307 by providing a specific message recommending marking the closure as move.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-closuresArea: Closures (`|…| { … }`)A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.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