Skip to content

Tolerate missing Sendable conformances on superclasses. #40821

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

DougGregor
Copy link
Member

@DougGregor DougGregor commented Jan 12, 2022

Description: Fix a compiler crash on invalid code due to missing Sendable conformances on a superclass.
Risk: Low
Testing: PR testing
Original PR: #40801
Reviewed by: Konrad Malawski
Radar: rdar://86653457

Fixes the crash in rdar://86653457

(cherry picked from commit 5023a93)
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swift-ci please nominate

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - f21a3e1

@DougGregor
Copy link
Member Author

@swift-ci please test Linux

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - f21a3e1

@DougGregor
Copy link
Member Author

@swift-ci please test Linux

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - f21a3e1

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, so this'll be fine since we want to see the synthesized missing conformance instead of an error right away?

@DougGregor
Copy link
Member Author

@swift-ci please test Linux

@DougGregor
Copy link
Member Author

LGTM, so this'll be fine since we want to see the synthesized missing conformance instead of an error right away?

Right. This area needs to maintain an invariant that the inherited conformance always has a ProtocolConformance*, even if it represents a missing conformance.

@DougGregor DougGregor merged commit 537e126 into swiftlang:release/5.6 Jan 14, 2022
@DougGregor DougGregor deleted the missing-inherited-conformance-5.6 branch January 14, 2022 22:09
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.6 labels Jan 8, 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.

5 participants