Skip to content

fix(bindgen): fix result rejection lowering and stream drop propagation#1461

Merged
vados-cosmonic merged 1 commit into
bytecodealliance:mainfrom
andreiltd:fix/p3-bindgen-stream-future-lifecycle
May 12, 2026
Merged

fix(bindgen): fix result rejection lowering and stream drop propagation#1461
vados-cosmonic merged 1 commit into
bytecodealliance:mainfrom
andreiltd:fix/p3-bindgen-stream-future-lifecycle

Conversation

@andreiltd
Copy link
Copy Markdown
Member

This patch contains a few fixes:

  • fix typo in realloc callback
  • rejected future<result<>> are converted to result.err
  • write to a dropped stream should return DROPPED
  • forward shim dispose to canonical stream end

@andreiltd andreiltd requested a review from vados-cosmonic as a code owner May 12, 2026 08:48
@andreiltd andreiltd changed the title Fix/p3 bindgen stream future lifecycle fix(bindgen): fix result rejection lowering and stream drop propagation May 12, 2026
Copy link
Copy Markdown
Collaborator

@vados-cosmonic vados-cosmonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@vados-cosmonic
Copy link
Copy Markdown
Collaborator

Test is still going to fail but this will be rebased and merge soon (after the other waiting PRs!)

@andreiltd
Copy link
Copy Markdown
Member Author

Thanks! Yes, I will keep an eye on CI fix and rebase all the PRs when it lands.

@vados-cosmonic vados-cosmonic force-pushed the fix/p3-bindgen-stream-future-lifecycle branch from 295aac2 to 07e8453 Compare May 12, 2026 14:16
@vados-cosmonic vados-cosmonic enabled auto-merge May 12, 2026 14:17
This patch contains a few fixes:
- fix typo in realloc callback
- rejected future<result<>> are converted to result.err
- write to a dropped stream should return DROPPED
- forward shim dispose to canonical stream end
@vados-cosmonic vados-cosmonic force-pushed the fix/p3-bindgen-stream-future-lifecycle branch from 07e8453 to 5e46968 Compare May 12, 2026 16:11
@vados-cosmonic vados-cosmonic added this pull request to the merge queue May 12, 2026
Merged via the queue into bytecodealliance:main with commit 3dbb0f9 May 12, 2026
37 checks passed
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