Skip to content

Conversation

hnrklssn
Copy link
Contributor

@hnrklssn hnrklssn commented Oct 8, 2025

  • Explanation:
    This adds support for safe wrappers for functions imported as methods using the swift_name attribute.
  • Scope:
    This currently only affects code with the experimental SafeInteropWrappers feature enabled, that imports headers with bounds annotations and swift_name importing the function as a method (annotated in the header or through API notes)
  • Issues:
    rdar://156288883
  • Original PRs:
    [Swiftify] Add support for free functions imported as instance methods #84507
  • Risk:
    A project fulfilling the criteria listed in the Scope section could go from compiling to having compilation errors, if the resulting expansion is invalid.
  • Testing:
    Local testing has been done. More extensive testing will be done before enabling SafeInteropWrappers by default (which would increase the scope of affected projects).
  • Reviewers:
    @Xazax-hun
    @DougGregor

@hnrklssn hnrklssn requested a review from a team as a code owner October 8, 2025 01:30
@hnrklssn
Copy link
Contributor Author

hnrklssn commented Oct 8, 2025

@swift-ci please test

…ethod

[Swiftify] Add support for free functions imported as instance methods

(cherry picked from commit ed4f058)
@hnrklssn hnrklssn force-pushed the cherry-pick-swiftify-import-as-method-6.2 branch from d4b6e9d to 6a9ac22 Compare October 8, 2025 03:13
@hnrklssn
Copy link
Contributor Author

hnrklssn commented Oct 8, 2025

@swift-ci please test

@hnrklssn
Copy link
Contributor Author

hnrklssn commented Oct 8, 2025

@swift-ci please test

@hnrklssn
Copy link
Contributor Author

hnrklssn commented Oct 8, 2025

@swift-ci please test

@hnrklssn hnrklssn merged commit d00f711 into swiftlang:release/6.2 Oct 10, 2025
5 checks passed
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.

3 participants