Skip to content

[Sema] Report exported uses of conformances that are implicitly imported #60008

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
Jul 12, 2022

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Jul 11, 2022

Diagnose uses of conformances in API when the conformance declaration isn't imported by the local file. This uses the existing logic checking for conformance availability combined with the implicit import check, we just needed to update the diagnostic select block. Report it as a warning until Swift 6 where it will be an error.

rdar://96437311

Diagnose uses of conformances in API when the conformance declaration
isn't imported by the local file. This uses the existing logic checking
for conformance availability combined with the implicit import check.
Report it as a warning until Swift 6 where it will be an error.

rdar://96437311
@xymus xymus requested review from slavapestov and tshortli July 11, 2022 21:40
@xymus
Copy link
Contributor Author

xymus commented Jul 11, 2022

@swift-ci Please smoke test

@xymus xymus merged commit 33a987f into swiftlang:main Jul 12, 2022
@xymus xymus deleted the implicit-import-conformances branch July 12, 2022 17:01
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