Skip to content

[2/3][Distributed][Typecheck] Fix distributed func typechecks in protocols #59718

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 2 commits into from
Jun 27, 2022

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Jun 27, 2022

Builds on #59711 so when looking at changes, look at this diff to see changes specific to this PR.

This PR is a bit more optional than fixing the protocol crashes;
But while I was working on that, I managed to fix a number of related issues (this PR):

These are minor fixes and can wait for a dot release if they have to.

  • distributed funcs in protocols were not subject to serialization checks
    • this is fixed now, and also can work with where SerializationRequirement == since we can apply the checks, and the protocol can only be implemented by a "matching" distributed actor
  • This also fixes Compiler crash on incorrect (non-existent) distributed actor declaration Compiler crash on incorrect (non-existent) distributed actor declaration #58663
    • Resolves rdar://92757561

@ktoso ktoso added the distributed Feature → concurrency: distributed actor label Jun 27, 2022
@ktoso ktoso changed the title [Distributed] Fix distributed func typechecks in protocols [Minor][Distributed][Typechedk] Fix distributed func typechecks in protocols Jun 27, 2022
@ktoso ktoso changed the title [Minor][Distributed][Typechedk] Fix distributed func typechecks in protocols [Minor][Distributed][Typecheck] Fix distributed func typechecks in protocols Jun 27, 2022
@ktoso ktoso force-pushed the wip-protocols-and-das-improved branch from 7eab80a to c8c625b Compare June 27, 2022 03:54
@ktoso
Copy link
Contributor Author

ktoso commented Jun 27, 2022

@swift-ci please smoke test

@ktoso ktoso force-pushed the wip-protocols-and-das-improved branch from c8c625b to 2d92d4c Compare June 27, 2022 08:12
@ktoso ktoso changed the title [Minor][Distributed][Typecheck] Fix distributed func typechecks in protocols [Distributed][Typecheck] Fix distributed func typechecks in protocols Jun 27, 2022
@ktoso
Copy link
Contributor Author

ktoso commented Jun 27, 2022

@swift-ci please smoke test

@ktoso ktoso force-pushed the wip-protocols-and-das-improved branch from 2d92d4c to fa077c1 Compare June 27, 2022 08:21
@ktoso
Copy link
Contributor Author

ktoso commented Jun 27, 2022

@swift-ci please smoke test

@ktoso ktoso changed the title [Distributed][Typecheck] Fix distributed func typechecks in protocols [2/3][Distributed][Typecheck] Fix distributed func typechecks in protocols Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distributed Feature → concurrency: distributed actor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants