Skip to content

Fix name uniqueness with methods/interfaces - #2625

Merged
pchickey merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:fix-resource-and-interface-names
Aug 26, 2026
Merged

Fix name uniqueness with methods/interfaces#2625
pchickey merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:fix-resource-and-interface-names

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

The hashing/equality done by wasmparser for resource methods and interface names didn't take into account the hashing of KebabStr, notably lowercasing, meaning that methods/interfaces which should clash did not actually clash. This is fixed here with custom trait impls that delegate to KebabStr versions.

The hashing/equality done by wasmparser for resource methods and
interface names didn't take into account the hashing of `KebabStr`,
notably lowercasing, meaning that methods/interfaces which should clash
did not actually clash. This is fixed here with custom trait impls that
delegate to `KebabStr` versions.
@alexcrichton
alexcrichton requested a review from a team as a code owner August 26, 2026 19:48
@alexcrichton
alexcrichton requested review from dicej and removed request for a team August 26, 2026 19:48
@pchickey
pchickey added this pull request to the merge queue Aug 26, 2026
Merged via the queue into bytecodealliance:main with commit e1ab7f1 Aug 26, 2026
37 checks passed
@alexcrichton
alexcrichton deleted the fix-resource-and-interface-names branch August 26, 2026 20:58
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