fitzgen opened PR #12668 from fitzgen:oom-handling-vec-should-not-be-clone to bytecodealliance:main:
If the
Vec<T>is non-empty, then cloning will allocate, so we should only implementTryClone, notClone.<!--
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 dicej for a review on PR #12668.
fitzgen requested wasmtime-core-reviewers for a review on PR #12668.
alexcrichton submitted PR review.
alexcrichton has enabled auto merge for PR #12668.
alexcrichton added PR #12668 Remove #[derive(Clone)] from our OOM-handling Vec<T> to the merge queue
github-merge-queue[bot] removed PR #12668 Remove #[derive(Clone)] from our OOM-handling Vec<T> from the merge queue
alexcrichton added PR #12668 Remove #[derive(Clone)] from our OOM-handling Vec<T> to the merge queue
alexcrichton merged PR #12668.
alexcrichton removed PR #12668 Remove #[derive(Clone)] from our OOM-handling Vec<T> from the merge queue
Last updated: Mar 23 2026 at 16:19 UTC