-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark receivers as moving before handling arguments
When lowering to MIR, we now mark receivers of moving methods as "moved" before processing the call arguments, ensuring one can't also pass the moved receiver as an argument to the same call. This fixes #588. Changelog: fixed
- Loading branch information
1 parent
b3f73c5
commit e026d91
Showing
1 changed file
with
48 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters