Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

take operation accepts mutable loaned reference for types which supports it #718

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

milyin
Copy link
Contributor

@milyin milyin commented Sep 26, 2024

This update guarantees that if type is able to be taken by mutable loaned reference, there is no way to get this reference from inner type. I.e. for owned type Option<Reply> the const z_loaned_reply_t* may be converted from/to Reply. But the z_loaned_reply_t* can be taken from the Option<Reply> only to guarantee validity of take operation

Copy link

PR missing one of the required labels: {'bug', 'internal', 'breaking-change', 'enhancement', 'dependencies', 'documentation', 'new feature'}

Copy link

PR missing one of the required labels: {'dependencies', 'new feature', 'breaking-change', 'enhancement', 'bug', 'documentation', 'internal'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant