Skip to content

[5.3][Sema] Warn on exporting implementation-only imported types in SPI #33213

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 31, 2020

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Jul 30, 2020

This completes type-checking work for #32902. Bringing back the diagnostic on exporting implementation-only imported types in SPI as a warning. This check was previously reverted from 5.3, and now it can be valid when relying solely on swiftmodule files or when using -experimental-spi-imports. This is part of a staged transition to a long term language feature of imports as SPI.

Downgrade to a warning the diagnostics on the use of an
implemenetation-only type in SPI to allow support for
-experimental-spi-imports.

rdar://66336527
@xymus xymus requested a review from a team as a code owner July 30, 2020 19:42
@xymus
Copy link
Contributor Author

xymus commented Jul 30, 2020

@swift-ci Please test

@xymus xymus requested a review from nkcsgexi July 30, 2020 19:57
@xymus
Copy link
Contributor Author

xymus commented Jul 30, 2020

@swift-ci Please nominate

@tkremenek tkremenek merged commit da8aff0 into swiftlang:release/5.3 Jul 31, 2020
@xymus xymus deleted the spi-ioi-check-workaround-5.3 branch October 31, 2022 21:07
@AnthonyLatsis AnthonyLatsis added swift 5.3 🍒 release cherry pick Flag: Release branch cherry picks labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants