Skip to content

[Distributed] Harden typechecker against completely empty DAS types #66695

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
merged 1 commit into from
Jun 16, 2023

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Jun 16, 2023

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.

Resolves #66548
Resolves rdar://110708278

@ktoso
Copy link
Contributor Author

ktoso commented Jun 16, 2023

@swift-ci please smoke test

@ktoso ktoso merged commit b420190 into swiftlang:main Jun 16, 2023
@ktoso ktoso deleted the wip-distributed-harden-empty-impls branch June 21, 2023 00:25
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.

Completely empty DistributedActorSystem implementation crashes compiler 5.9 rather than emit diagnostic
1 participant