Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't pass embed functions directly to AnyCasePath.init #3167

Merged
merged 1 commit into from
Jun 14, 2024

Commits on Jun 14, 2024

  1. Don't pass embed functions directly to AnyCasePath.init

    `AnyCasePath` closures will be required to be `@Sendable` for Swift 6
    data race checking, but `Enum.case` functions are not `@Sendable`
    implicitly. As such we cannot pass `Enum.case` directly to functions
    that expect sendable closures. Instead, we must explicitly write:
    
    ```swift
    { .case($0) }
    ```
    stephencelis committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    ecf3b12 View commit details
    Browse the repository at this point in the history