Join GitHub today
NLL lacks various special case handling of closures #54976
Part of #52663.
Firstly, this PR extends existing handling of closures to also support generators.
Second, this PR adds the note found in the AST when a closure is invoked twice and captures a variable by-value:
referenced this pull request
Oct 10, 2018
Looks good but the labeling of freevars is too eager.
Click to expand the log.