Skip to content

sema, cimport: represent borrowed-return origins as a list (#3022) - #3650

Merged
ehartford merged 1 commit into
mainfrom
borrow-origins-list-3022
Nov 27, 2026
Merged

ehartford merged 1 commit into
mainfrom
borrow-origins-list-3022

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Replaces the paired scalar fields for multi-origin borrowed returns (D187) with List[i32] across Sema, contract analysis, and the C facade drafter:

  • src/Sema.with: ForeignContract.returns_borrow_from: List[i32] (drops returns_borrow_from2) and FacadeCallEffect.borrow_params: List[i32] (drops borrow_param2).
  • src/CiIR.with: CiProjectSymbol.borrow_from: List[i32] (drops borrow_from2).
  • src/SemaFacade.with, src/SemaCheck.with, src/AnalysisContract.with, src/CiFacadeDraft.with, src/CiContracts.with: iterate over the origin list uniformly (including hosted CStr multi-origin views in verify_facade_text_return and resource view rows in AnalysisContract).

Closes #3022.

@ehartford

Copy link
Copy Markdown
Contributor Author

Battery & :release-checks verdict on 937c7725d:

  • with run tools/battery.with: GREEN (rc=0, wall=1591s; verified via with run tools/verdict.with out/battery/battery.log)
  • src/main build :release-checks: GREEN (wall=901.9s, stage2 == stage3 over all 16 units of the compiler, EMIT-C OK, EMIT-C FIXPOINT)

@ehartford
ehartford marked this pull request as ready for review November 27, 2026 09:11
@ehartford
ehartford merged commit 8e9ffb5 into main Nov 27, 2026
1 check passed
@ehartford
ehartford deleted the borrow-origins-list-3022 branch November 27, 2026 09:12
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.

D187: represent a borrowed return's origins as a list, not a first slot plus returns_borrow_from2

1 participant