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

Error when wasmtime::component::bindgen has unused with param. #8371

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

rylev
Copy link
Contributor

@rylev rylev commented Apr 15, 2024

Instead of silently dropping unused with parameters on the floor, we instead error letting the user know that this option is being ignored.

I don't believe there's scaffolding for testing errors produced by the bindgen! macro, so I'm not sure if this can currently be tested.

Fixes #8304

Instead of silently dropping unused with parameters on the floor, we
instead error letting the user know that this option is being ignored.

Fixes bytecodealliance#8304
@rylev rylev requested a review from a team as a code owner April 15, 2024 17:02
@rylev rylev requested review from alexcrichton and removed request for a team April 15, 2024 17:02
Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

Thanks for this!

@alexcrichton alexcrichton added this pull request to the merge queue Apr 15, 2024
Merged via the queue into bytecodealliance:main with commit c551484 Apr 15, 2024
21 checks passed
@rylev rylev deleted the error-on-ununsed-with branch April 16, 2024 09:11
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.

wasmtime::component::bindgen! config 'with' option should error if provided interface does not exist in world
2 participants