Stream: git-wasmtime

Topic: wasmtime / PR #12505 Add fallible `try_collect` to collec...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 17:14):

alexcrichton requested fitzgen for a review on PR #12505.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 17:14):

alexcrichton opened PR #12505 from alexcrichton:more-fallible-collect to bytecodealliance:main:

This adds a new TryCollect extension trait to wasmtime-core which enables iter.try_collect() to fallibly collect into a Vec<T> or Box<[T]> while handling OOM. This is intended to serve as a replacement for the new_boxed_slice_* helpers in appropriate situations since it more closely matches what Wasmtime likely already does today where we throw .collect() on iterators.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 17:14):

alexcrichton requested wasmtime-core-reviewers for a review on PR #12505.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 17:14):

alexcrichton requested wasmtime-fuzz-reviewers for a review on PR #12505.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 17:14):

alexcrichton requested wasmtime-compiler-reviewers for a review on PR #12505.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 17:23):

alexcrichton commented on PR #12505:

I noticed this mostly reading over some slice-handling things in https://github.com/bytecodealliance/wasmtime/pull/12500 and I figured it'd be nice to keep the preexisting .collect() patterns instead of going all the way to the new_boxed_slice_* functions where possible.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 18:06):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 18:06):

fitzgen created PR review comment:

Can you add OOM tests for these cases?

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 18:06):

fitzgen created PR review comment:

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 19:07):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 19:07):

alexcrichton created PR review comment:

Good points yeah, I forgot Extend was a trait! I've moved to TryExtend instead

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 19:07):

alexcrichton updated PR #12505.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 19:08):

alexcrichton has enabled auto merge for PR #12505.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 19:15):

alexcrichton updated PR #12505.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 19:27):

alexcrichton added PR #12505 Add fallible try_collect to collections to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 19:51):

alexcrichton merged PR #12505.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 19:51):

alexcrichton removed PR #12505 Add fallible try_collect to collections from the merge queue.


Last updated: Feb 24 2026 at 04:36 UTC