Skip to content

[ModuleInterface] Print some implementation-only imports in the private interface #33207

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
Jul 30, 2020

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Jul 30, 2020

Bring master in line with the 5.3 behavior and specifically #32902. Also downgrade to a warning the diagnostic on the use of implementation-only imported types in SPI decls.

This is a temporary solution to accommodate existing projects. It will have to be revisited once we have a long term design for the concept of imports as SPI.

xymus added 2 commits July 30, 2020 09:20
…te interface

Print implementation-only imports in the private textual interface
only if also importing SPI. This allows to export types from
implementation-only imports in SPI and brings the private textual
interfaces in line with the binary interfaces.

This is a temporary solution as we need to better design the language
feature around this.

This feature requires passing -experimental-spi-imports to the frontend
that generates the private swiftinterface file.
Downgrade to a warning the diagnostics on the use of an
implemenetation-only type in SPI to allow support for
-experimental-spi-imports.
@xymus
Copy link
Contributor Author

xymus commented Jul 30, 2020

@swift-ci Please smoke 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 test Windows platform

@xymus xymus merged commit fb364ae into swiftlang:master Jul 30, 2020
@xymus xymus deleted the spi-ioi-check-workaround branch October 31, 2022 21:07
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.

1 participant