alexcrichton opened PR #15125 from alexcrichton:fix-panic to bytecodealliance:main:
This commit fixes a possible panic when translating a component when a module is imported and uses
rec-group-defined types. The problem is that a module type's imports and exports could refer to types which weren't previously intern'd and would cause problems upon reaching them.The main fix for this was landed in
wasmparseralready to expose the core index space in module types, and that's now used to intern everything found. This ensures that all types are always available when doing type translation.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.mdPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested wasmtime-core-reviewers for a review on PR #15125.
alexcrichton requested pchickey for a review on PR #15125.
alexcrichton removed the review request for wasmtime-core-reviewers from PR #15125.
:memo: alexcrichton submitted PR review.
:speech_balloon: alexcrichton created PR review comment:
Note that with eager interning this is no longer necessary
:thumbs_up: pchickey submitted PR review.
alexcrichton added PR #15125 Fix panics compiling module imports with rec groups to the merge queue.
:check: alexcrichton merged PR #15125.
alexcrichton removed PR #15125 Fix panics compiling module imports with rec groups from the merge queue.
Last updated: Nov 19 2026 at 20:05 UTC