Skip to content

fix: synthesize callee resource.rep for own<T> result transfers#59

Merged
avrabe merged 1 commit intomainfrom
fix/synthesize-callee-rep-for-own-results
Mar 22, 2026
Merged

fix: synthesize callee resource.rep for own<T> result transfers#59
avrabe merged 1 commit intomainfrom
fix/synthesize-callee-rep-for-own-results

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Mar 22, 2026

Summary

Add synthesis of callee's [resource-rep] for own result transfers where callee_defines_resource=false (re-exporter case). The adapter calls resource.rep on the callee's handle before resource.new on the caller, but the callee's import was never synthesized.

Test plan

  • All 73 wit-bindgen tests pass
  • All 164 unit tests pass
  • clippy clean

🤖 Generated with Claude Code

The adapter's own<T> result path calls callee's resource.rep before
caller's resource.new. But the synthesis step only generated the
caller's imports — the callee's [resource-rep] was never synthesized
for result transfers, leaving resource_rep_by_component empty.

Add synthesis of callee's [resource-rep] for own results where
callee_defines_resource is false (re-exporter case).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@avrabe avrabe merged commit 9ab2f86 into main Mar 22, 2026
@avrabe avrabe deleted the fix/synthesize-callee-rep-for-own-results branch March 22, 2026 09:15
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.

1 participant