Skip to content

Revamp borrowck treatment of closures #6801

Closed
@nikomatsakis

Description

@nikomatsakis

As described in #2202 and this blog post, the borrow checker's treatment of closures needs to be changed. When a new closure is created, we should analyze the upvars that it accesses and create suitable borrows of those upvars that persist for the closure's lifetime. This is interrelated with #3696.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions