Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Disallow empty types in the component model - #1142

#1142
Merged
alexcrichton merged 1 commit into
bytecodealliance:mainbytecodealliance/wasm-tools:mainfrom
alexcrichton:no-empty-typesalexcrichton/wasm-tools:no-empty-typesCopy head branch name to clipboard
Jul 25, 2023
Merged

Disallow empty types in the component model#1142
alexcrichton merged 1 commit into
bytecodealliance:mainbytecodealliance/wasm-tools:mainfrom
alexcrichton:no-empty-typesalexcrichton/wasm-tools:no-empty-typesCopy head branch name to clipboard

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

This updates the component validation phase to account for WebAssembly/component-model#218

This updates the component validation phase to account for
WebAssembly/component-model#218
@pchickey

Copy link
Copy Markdown
Contributor

WebAssembly/component-model#218 doesn't make the restriction for variant types, but this PR does - where do we reconcile that?

@alexcrichton

Copy link
Copy Markdown
Member Author

Oh oops sorry yes I forgot to mention, this additionally fixes mistakes where enums/unions accidentally allowed zero cases but they're both required to have at least one case like variants currently require.

@alexcrichton
alexcrichton merged commit 69b5213 into bytecodealliance:main Jul 25, 2023
@alexcrichton
alexcrichton deleted the no-empty-types branch July 25, 2023 18:57
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.