Skip to content

[Sema] Always warn on uses of an implicitly imported conformances in API until Swift 6 #60633

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
Aug 23, 2022

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Aug 18, 2022

Until Swift 6, always downgrade to a warning the diagnostic on the use in API of a conformance that wasn't imported by the local source file.

rdar://98851314

Until Swift 6, always downgrade to a warning the diagnostic on the use
in API of a conformance that wasn't imported by the local source file.

rdar://98851314
@xymus
Copy link
Contributor Author

xymus commented Aug 18, 2022

@beccadax Would you know what kind of conformance usage I should test to correctly trigger this diagnostic to get it as an error in Swift 5? My current test appears to already be downgraded to a warning before this modification. The current test is at https://github.com/apple/swift/blob/e17590e0c046ba12100bc7b53829e87f0c9baf77/test/Sema/implicit-import-in-inlinable-code.swift#L52

@xymus xymus requested review from tshortli and beccadax August 18, 2022 21:56
@xymus
Copy link
Contributor Author

xymus commented Aug 22, 2022

@swift-ci Please smoke test

@xymus xymus merged commit 982fb87 into swiftlang:main Aug 23, 2022
@xymus xymus deleted the warn-conformance-in-api branch August 23, 2022 16:46
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