Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rust] use cleanup list as necessary for stream/future writes #1240

Merged

Conversation

dicej
Copy link
Collaborator

@dicej dicej commented Mar 24, 2025

Previously, I had failed to consider (or test) the case where lowering values for stream/future writes would require intermediate allocations that need to be cleaned up. That manifested as compiler errors due to generated code referencing a non-existent cleanup_list variable.

Fixes #1153

@alexcrichton alexcrichton enabled auto-merge March 24, 2025 16:26
Previously, I had failed to consider (or test) the case where lowering values
for stream/future writes would require intermediate allocations that need to be
cleaned up.  That manifested as compiler errors due to generated code
referencing a non-existent `cleanup_list` variable.

Fixes bytecodealliance#1153

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@dicej dicej force-pushed the stream-future-write-cleanup-list branch from 20b46dc to b9069bf Compare March 24, 2025 17:12
@alexcrichton alexcrichton added this pull request to the merge queue Mar 24, 2025
Merged via the queue into bytecodealliance:main with commit 5e7d46c Mar 24, 2025
18 checks passed
@dicej dicej deleted the stream-future-write-cleanup-list branch March 24, 2025 18:08
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.

Rust bindings generated for WIT using future<result<list<string>>> is missing "cleanup_list"
2 participants