Skip to content

fix: correct callee_defines_resource for sentinel type entries#46

Merged
avrabe merged 1 commit intomainfrom
fix/sentinel-callee-defines-resource
Mar 19, 2026
Merged

fix: correct callee_defines_resource for sentinel type entries#46
avrabe merged 1 commit intomainfrom
fix/sentinel-callee-defines-resource

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Mar 19, 2026

Fixes callee_defines_resource for re-exporting intermediates. Synthesizes caller-side resource-new for own results. 73/73 pass.

When build_resource_type_to_import uses the Step 4b fallback (sentinel
type 0), the callee doesn't truly define the resource — it re-exports
from another component. The callee_defines_resource flag now checks
for sentinel entries and returns false, enabling SR-33 result conversion
and 3-component borrow forwarding for re-exporting intermediates.

Also synthesizes caller-side [resource-new] for own<T> results in
3-component chains.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@avrabe avrabe merged commit 571f885 into main Mar 19, 2026
3 checks passed
@avrabe avrabe deleted the fix/sentinel-callee-defines-resource branch March 19, 2026 06:29
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