Skip to content

Fix parsing of identifiers in type contexts #2195

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

Merged
merged 1 commit into from
May 29, 2025

Conversation

alexcrichton
Copy link
Member

This fixes a historical bug the wast crate when parsing $id-style identifiers in exports within a type context (e.g. within an instance type or a component type). This was due to what I believe was a historical misunderstanding of mine and/or maybe some historical change, unsure!

This is a breaking change for the text format but given how rarely this should be used it's expected that this breaking change practically won't actually have any impact.

Closes #2192

This fixes a historical bug the `wast` crate when parsing `$id`-style
identifiers in exports within a type context (e.g. within an instance
type or a component type). This was due to what I believe was a
historical misunderstanding of mine and/or maybe some historical change,
unsure!

This is a breaking change for the text format but given how rarely this
should be used it's expected that this breaking change practically won't
actually have any impact.

Closes bytecodealliance#2192
@alexcrichton alexcrichton requested review from a team and fitzgen and removed request for a team May 29, 2025 16:55
@fitzgen fitzgen added this pull request to the merge queue May 29, 2025
Merged via the queue into bytecodealliance:main with commit c969911 May 29, 2025
32 checks passed
@alexcrichton alexcrichton deleted the fix-type-id-parsing branch May 29, 2025 21: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.

spec mismatch on where $id appears in a type declarator
2 participants