-
-
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.
Fix missing drops when ignoring match values
When the first case in a match expression returns a `Nil`, the values returned by other cases (regardless of their type) are to be ignored, and dropped at the end of the case body. This wasn't implemented correctly, resulting in either drop errors (in case a reference was returned), or a leak (when returning an owned value). Changelog: fixed
- Loading branch information
1 parent
ad26748
commit 37bc3f1
Showing
2 changed files
with
21 additions
and
2 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
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