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

test-macros: Fix default return type #9469

Conversation

saulecabrera
Copy link
Member

This commit fixes the handling of default return types in wasmtime-test-macros. Prior to this commit, functions returning () inserted a () as the return output, which resulted in a syntax error.

This commit fixes this issue by quoting empty tokens when the return type is the default one.

This commit fixes the handling of default return types in
`wasmtime-test-macros`. Prior to this commit, functions returning `()`
inserted a `()` after the return output, which resulted in a syntax
error.

This commit fixes this issue by quoting empty tokens when the return
type is the default one.
@saulecabrera saulecabrera requested a review from a team as a code owner October 14, 2024 19:27
@saulecabrera saulecabrera requested review from pchickey and alexcrichton and removed request for a team October 14, 2024 19:27
@pchickey pchickey added this pull request to the merge queue Oct 14, 2024
Merged via the queue into bytecodealliance:main with commit ba8ed6c Oct 14, 2024
39 checks passed
@saulecabrera saulecabrera deleted the test-macros-fix-default-return-type branch October 15, 2024 12:53
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.

2 participants