Skip to content

Conversation

@susmonteiro
Copy link
Contributor

  • Explanation: This patch refactors the copyability and escapability requests to prevent request cycles from happening when we visit the fields and bases of the original type. Note that the previous implementation would never create cycles, because we would never visit fields and bases for either the requests (only template arguments). Instead this refactoring was necessary for a subsequent patch, where we actually start visiting fields and bases.
  • Original PRs: [cxx-interop] Refactor ClangTypeEscapability and CxxValueSemantics requests #85485
  • Risk: Medium, this refactors the copyability and escapability requests which could potentially (but hopefully won't) introduce regressions.
  • Testing: No new tests were added because we already had a good set of tests for these requests, and no new functionality was introduced.
  • Reviewers: @j-hui @Xazax-hun @hnrklssn

@susmonteiro susmonteiro requested a review from a team as a code owner December 4, 2025 15:29
@susmonteiro susmonteiro added c++ interop Feature: Interoperability with C++ 🍒 release cherry pick Flag: Release branch cherry picks swift 6.3 labels Dec 4, 2025
@susmonteiro
Copy link
Contributor Author

@swift-ci please test

@susmonteiro
Copy link
Contributor Author

@swift-ci please test

1 similar comment
@susmonteiro
Copy link
Contributor Author

@swift-ci please test

@susmonteiro
Copy link
Contributor Author

@swift-ci please test windows

@susmonteiro susmonteiro merged commit 83b7095 into swiftlang:release/6.3 Dec 10, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ interop Feature: Interoperability with C++ 🍒 release cherry pick Flag: Release branch cherry picks swift 6.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants