Skip to content

🍒[5.9][Distributed] Harden typechecker against completely empty DAS types #66697

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

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Jun 16, 2023

Description: When implementing a distributed actor system protocol and the implementation is "completely empty" we may run into null pointers when trying to look up ad hoc requirements.

Solution: The safe thing to do here is to bail out from lookups when lookups for ad-hoc requirements are made on null types.

Risk: Low, only adds nullchecks
Review by: @DougGregor
Testing: CI testing
Original PR: #66695
Radar: rdar://110708278

resolves #66548

@ktoso ktoso requested a review from a team as a code owner June 16, 2023 03:48
@ktoso
Copy link
Contributor Author

ktoso commented Jun 16, 2023

@swift-ci please test

@DougGregor DougGregor merged commit 7000387 into swiftlang:release/5.9 Jun 16, 2023
@ktoso ktoso deleted the pick-wip-distributed-harden-empty-impls branch June 16, 2023 22:03
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.

2 participants