Skip to content

[5.3] Allow SPI access within the same module in checkAccess #31660

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
May 12, 2020

Conversation

xymus
Copy link
Contributor

@xymus xymus commented May 8, 2020

Cherry-pick of #31591.


  • Explanation:
    SPI decls were not considered to be accessible from the same module when searched with checkAccess. This affected the search for protocol conformances leading the compiler to complain wrongly about conformances or to synthesize == for an SPI type when there was already an implementation. The later caused an assert in SILGen.
  • Scope: This code path affects only the users of the @_spi attribute.
  • Risk: Low
  • Testing: Added a new test with reducers of the two failures we observed.
  • Resolves rdar://61043406&61987739
  • Reviewed by @brentdax

rdar://problem/61043406
rdar://problem/61987739
@xymus xymus added the r5.3 label May 8, 2020
@xymus xymus requested a review from a team as a code owner May 8, 2020 18:34
@xymus
Copy link
Contributor Author

xymus commented May 8, 2020

@swift-ci please test

@xymus
Copy link
Contributor Author

xymus commented May 12, 2020

@swift-ci please nominate

@xymus xymus merged commit c279be4 into swiftlang:release/5.3 May 12, 2020
@xymus xymus deleted the spi-equatable-5.3 branch May 12, 2020 17:04
@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.

3 participants