Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix argument indices in MIR for closures.
Previously, all references to closure arguments went to the argument before the one they should (e.g. to arg1 when it was supposed to be arg2). This was because the MIR builder did not account for the implicit arguments that come before the explicit arguments, and closures have one implicit argument - the struct containing the captures.
- Loading branch information