swift
swift copied to clipboard
[6.0] Look through `@Sendable` conversions when considering C function pointer conversions.
Explanation: Fixes an incorrect diagnostic when attempting to use a Swift function as a C function pointer in Swift 6 mode. Scope: Fixes a bug that may impact source compatibility and C interoperability when transitioning to Swift 6 mode or strict concurrency checking. Issue: rdar://127521718 Original PR: https://github.com/apple/swift/pull/73436 Risk: Low. This removes an incorrect error diagnostic in a fairly narrow situation. Testing: Test case from bug report, Swift CI Reviewer: TBD
@swift-ci Please test