Stream: git-wasmtime

Topic: wasmtime / PR #5586 Generalize iterator types in compute_...


view this post on Zulip Wasmtime GitHub notifications bot (Jan 17 2023 at 21:46):

jameysharp requested elliottt for a review on PR #5586.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 17 2023 at 21:46):

jameysharp opened PR #5586 from use-count-iter to main:

This is a cleanup to help prepare for #5464.

Most of the diff is inlining the closure for mark_all_uses_as_multiple which was only called once. That avoids some borrow-checker challenges.

The key change is that the former push_args_on_stack closure no longer actually pushes the iterator on the stack, but just returns it. That way this closure doesn't need the name of the stack's type. It also allows it to be reused in the debug_assert.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jan 17 2023 at 21:59):

elliottt submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 17 2023 at 22:06):

jameysharp has enabled auto merge for PR #5586.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 17 2023 at 22:17):

jameysharp merged PR #5586.


Last updated: Dec 23 2024 at 13:07 UTC