Skip to content

Conversation

@meg-gupta
Copy link
Contributor

@meg-gupta meg-gupta commented Nov 6, 2025

  • Add SIL verification to ensure we don't return local addresses from borrow and mutate accessors: Address results can only be projections of self or borrow/mutate accessor results.
  • Add memory lifetime verification for borrow and mutate accessors: This ensures the address result of the borrow/mutate accessors is not used after self is destroyed.
  • Fix memory lifetime verification for store_borrow projections
  • Update return_borrow handling
  • Update move-only checker for mutate results

@meg-gupta meg-gupta force-pushed the moreborrow branch 2 times, most recently from bb1cbe6 to 8a512d9 Compare November 6, 2025 12:45
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta marked this pull request as ready for review November 6, 2025 18:57
@meg-gupta meg-gupta requested a review from atrick November 6, 2025 18:57
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta
Copy link
Contributor Author

@swift-ci test windows platform

1 similar comment
@meg-gupta
Copy link
Contributor Author

@swift-ci test windows platform

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