Skip to content

Conversation

@alexcrichton
Copy link
Member

This commit is a refinement of #11325 to use .unwrap() internally instead of ignoring errors from dropping futures and streams. Fallible drop isn't supported in Rust and these shouldn't panic assuming the host is properly matching handles to stores.

This commit is a refinement of bytecodealliance#11325 to use `.unwrap()` internally
instead of ignoring errors from dropping futures and streams. Fallible
drop isn't supported in Rust and these shouldn't panic assuming the host
is properly matching handles to stores.
@alexcrichton alexcrichton requested a review from dicej July 30, 2025 18:53
@alexcrichton alexcrichton requested a review from a team as a code owner July 30, 2025 18:53
Leave it around while futures/fibers are being manually dropped so any
destructors associated there get access to the table (as required by
streams/futures/etc).
@alexcrichton alexcrichton requested a review from a team as a code owner July 30, 2025 20:54
@alexcrichton alexcrichton requested review from cfallin and removed request for a team July 30, 2025 20:54
@alexcrichton alexcrichton added this pull request to the merge queue Jul 30, 2025
Merged via the queue into bytecodealliance:main with commit 228515c Jul 30, 2025
43 checks passed
@alexcrichton alexcrichton deleted the no-fallible-drop branch July 30, 2025 21:40
bongjunj pushed a commit to prosyslab/wasmtime that referenced this pull request Oct 20, 2025
…11351)

* Don't support fallible drop in futures_and_streams

This commit is a refinement of bytecodealliance#11325 to use `.unwrap()` internally
instead of ignoring errors from dropping futures and streams. Fallible
drop isn't supported in Rust and these shouldn't panic assuming the host
is properly matching handles to stores.

* Fix build of wasmtime-wasi

* Don't empty the table during store destruction

Leave it around while futures/fibers are being manually dropped so any
destructors associated there get access to the table (as required by
streams/futures/etc).

* Remove unused import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants