Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

librustc_middle: Rename upvar_list to closure_captures #72591

Merged

Commits on May 25, 2020

  1. Rename upvar_list to closure_captures

    As part of supporting RFC 2229, we will be capturing all the places that
    are mentioned in a closure. Currently the upvar_list field gives access
    to a FxIndexMap<HirId, Upvar> map. Eventually this will change, with the
    upvar_list having a more general structure that expresses captured
    paths, not just the mentioned upvars. We will make those changes in
    subsequent PRs.
    
    This commit modifies the name of the upvar_list map to closure_captures
    in TypeckTables.
    
    Co-authored-by: Dhruv Jauhar <dhruvjhr@gmail.com>
    Co-authored-by: Aman Arora <me@aman-arora.com>
    3 people committed May 25, 2020
    Configuration menu
    Copy the full SHA
    c3dc8c4 View commit details
    Browse the repository at this point in the history