Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Generate projections for upvars #12

Closed
arora-aman opened this issue Jun 12, 2020 · 1 comment
Closed

Generate projections for upvars #12

arora-aman opened this issue Jun 12, 2020 · 1 comment

Comments

@arora-aman
Copy link
Member

arora-aman commented Jun 12, 2020

Currently upvars don't generate projections: https://github.com/rust-lang/rust/blob/28946b3486d507418b8a4acb92d5e2baae193d65/src/librustc_typeck/mem_categorization.rs#L4860

@arora-aman
Copy link
Member Author

cat_upvar is one of the base cases of recursion in cat_expr, the projections get populated as the call stack unfolds.

@ChrisPardy @null-sleep can you confirm this description is correct?

@nikomatsakis nikomatsakis added this to the Feature complete milestone Feb 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants