fitzgen opened PR #12539 from fitzgen:dont-context-format to bytecodealliance:main:
Use
result.with_context(|| format!(".."))instead, to delay the formatting and string allocation until if/when we actually encounter an error.<!--
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 ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
fitzgen requested wasmtime-core-reviewers for a review on PR #12539.
fitzgen requested dicej for a review on PR #12539.
fitzgen updated PR #12539.
alexcrichton submitted PR review.
fitzgen has enabled auto merge for PR #12539.
fitzgen added PR #12539 Do not do result.context(format!("..")) to the merge queue
fitzgen merged PR #12539.
fitzgen removed PR #12539 Do not do result.context(format!("..")) from the merge queue
Last updated: Feb 24 2026 at 04:36 UTC