Skip to content

[Sema] Accept the use of SPI in SPI inlinable code #33970

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 4 commits into from
Sep 17, 2020

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Sep 16, 2020

Allow the use of SPI declarations within SPI inlinable code, default values for arguments and frozen property initializers. This makes the compiler generate @_spi attributes where they would have previously been rejected so accept all explicit @_spi attributes in SPI contexts. To test all of this and more, we also check the swiftinterfaces generated by SPI/private_swiftinterface.swift with -typecheck-module-from-interface.

rdar://63978500&63189125

Dummy conformances are generated when a conditional conformance is
constrained by a type that is not to be printed. In case the types
involved are SPI, mark the dummy conformance SPI in the private
swiftinterface only.
@xymus xymus requested a review from beccadax September 16, 2020 18:48
@xymus
Copy link
Contributor Author

xymus commented Sep 16, 2020

@swift-ci Please smoke test

@xymus xymus merged commit 2364a7c into swiftlang:master Sep 17, 2020
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