Skip to content

Fix calculation of param/result types in wit-bindgen#5622

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-bindgen
Jan 23, 2023
Merged

Fix calculation of param/result types in wit-bindgen#5622
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-bindgen

Conversation

@alexcrichton
Copy link
Member

This commit fixes a bug in the bindgen! macro for components where previously the param and result properties weren't properly calculated depending on the structure of the type and which types were visited in which order. This is simplified to use a LiveTypes structure from the wit-parser crate and relies on that to do necessary recursion.

This commit fixes a bug in the `bindgen!` macro for components where
previously the `param` and `result` properties weren't properly
calculated depending on the structure of the type and which types were
visited in which order. This is simplified to use a `LiveTypes`
structure from the `wit-parser` crate and relies on that to do necessary
recursion.
@alexcrichton alexcrichton enabled auto-merge (squash) January 23, 2023 19:05
@alexcrichton alexcrichton merged commit 293005b into bytecodealliance:main Jan 23, 2023
@alexcrichton alexcrichton deleted the fix-bindgen branch January 23, 2023 19:05
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