-
-
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.
Allow passing uni ref T to ref T in certain cases
This allows passing values of type `uni ref T` to arguments of type `ref T`, provided no aliases to the unique reference/borrow can be created. This makes it possible to recover values into `uni T` when using methods that take immutable references to do so, something that was previously not possible. This fixes #570. Changelog: added
- Loading branch information
1 parent
c3f3385
commit be0d830
Showing
3 changed files
with
57 additions
and
16 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
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