Skip to content

[typeck]: reject overlapping field &mut borrows (PHX-borrow-6) - #161

Merged
JamalLyons merged 1 commit into
trunkfrom
agent/v0-sprint/20260701-phx-borrow-6-field-mut
Jul 2, 2026
Merged

[typeck]: reject overlapping field &mut borrows (PHX-borrow-6)#161
JamalLyons merged 1 commit into
trunkfrom
agent/v0-sprint/20260701-phx-borrow-6-field-mut

Conversation

@JamalLyons

Copy link
Copy Markdown
Member

Summary

  • Resolve struct field borrow sites to root binding for exclusivity checks
  • Unit + golden E2047 diagnostic

Test plan

  • just pre-commit

Made with Cursor

Resolve struct field borrow sites to the root binding so concurrent
&mut s.a and &mut s.b are rejected as overlapping borrows of s.

Co-authored-by: Cursor <cursoragent@cursor.com>
@JamalLyons
JamalLyons merged commit 53c8415 into trunk Jul 2, 2026
1 check passed
@JamalLyons
JamalLyons deleted the agent/v0-sprint/20260701-phx-borrow-6-field-mut branch July 2, 2026 04:36
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