Skip to content

[Distributed] Don't diagnose declared dist member properties when importing module #66841

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

ktoso
Copy link
Contributor

@ktoso ktoso commented Jun 22, 2023

We previously fixed that this method should not diagnose when checking in SourceFileKind::Interface mode, but we also should skip when there is no source file at all.

This fixes compilation of the distributed cluster in 5.9, since the behavior of typechecking seems to have changed slightly and we didn't enter this function in such situations previously.

Resolves: rdar://111080052

@ktoso ktoso requested review from hborla and xedin as code owners June 22, 2023 02:02
@ktoso
Copy link
Contributor Author

ktoso commented Jun 22, 2023

@swift-ci please smoke test and merge

@ktoso ktoso added the distributed Feature → concurrency: distributed actor label Jun 22, 2023
@ktoso ktoso requested a review from DougGregor June 22, 2023 02:13
Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

Would it be possible to add a test case for this to test/ClangImporter or test/ModuleInterface?

@swift-ci swift-ci merged commit 3ef125b into swiftlang:main Jun 22, 2023
@ktoso
Copy link
Contributor Author

ktoso commented Jun 22, 2023

Ah there, yes I will try to add one

@xedin
Copy link
Contributor

xedin commented Jun 22, 2023

Thank you!

@ktoso ktoso deleted the wip-distributed-non-file-checking-properties branch June 22, 2023 08:16
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.

3 participants