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

Fix wasm_importtype_new's Rust signature to not assume boxed vectors #2719

Merged
merged 2 commits into from
Dec 13, 2021

Conversation

Amanieu
Copy link
Contributor

@Amanieu Amanieu commented Dec 13, 2021

Fixes #2718

@Amanieu Amanieu requested a review from ptitSeb December 13, 2021 10:59
Comment on lines +24 to +27
However, vectors (such as `wasm_name_t`) are a special case: for those, `own`
means that the ownership of contents of the vector are transfered, not the
allocation of the vector type itself. Hence these are represented using
`&mut T` instead.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this extra doc. Super useful!

@ptitSeb
Copy link
Contributor

ptitSeb commented Dec 13, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 13, 2021

@bors bors bot merged commit f839af0 into master Dec 13, 2021
@bors bors bot deleted the fix_wasm_importtype_new branch December 13, 2021 12:30
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.

PR#2210 breaking FFI bindings
3 participants