Skip to content

Conversation

@lann
Copy link
Contributor

@lann lann commented Aug 24, 2023

This removes all relevant references to "union".

Fixes #1179

// reason for this is that when visiting `var` the wasm-defined `(list
// visiting the `list<string>` case of the `foo` variant this ends up
// being different than the `list<string>` used by the `bar` variant. The
// reason for this is that when visiting `bar` the wasm-defined `(list
Copy link
Contributor Author

@lann lann Aug 24, 2023

Choose a reason for hiding this comment

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

I think this preserves the intent of the comment, but I'll admit I didn't try to comprestand the whole thing very well.

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.

Looks great to me, thanks!

@lann
Copy link
Contributor Author

lann commented Aug 25, 2023

Rebased on #1178 to fix rustfmt CI

@lann lann marked this pull request as ready for review August 25, 2023 12:07
@alexcrichton alexcrichton merged commit 64f3ada into bytecodealliance:main Aug 25, 2023
@lann lann deleted the remove-union branch August 25, 2023 17:06
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.

Remove component union types

2 participants