Skip to content

[5.8][RequirementMachine] Skip Sendable conformance requirements from @preconcurrency declarations in requirement inference. #63493

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

Merged

Conversation

hborla
Copy link
Member

@hborla hborla commented Feb 7, 2023

  • Explanation: Currently, @preconcurrency annotations can break client ABI through inference of new Sendable conformance requirements. This change teaches requirement inference to drop Sendable conformance requirements from inference sources that are @preconcurrency declarations unless the destination declaration is itself @preconcurrency.

  • Scope: This change is critical for frameworks auditing APIs for concurrency. It only affects generic types or protocols marked with @preconcurrency.

  • Risk: Low.

  • Testing: Added unit tests.

  • Reviewer: @DougGregor

Resolves: rdar://104129992

…oncurrency

declarations in requirement inference.
…econcurrency

decls if the decl we're inferring the generic signature for is not itself
preconcurrency.
@hborla hborla requested a review from a team as a code owner February 7, 2023 16:17
@hborla
Copy link
Member Author

hborla commented Feb 7, 2023

@swift-ci please test

@hborla hborla merged commit 672f2d1 into swiftlang:release/5.8 Feb 7, 2023
@hborla hborla deleted the 5.8-preconcurrency-requirement-inference branch February 7, 2023 21:25
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants