Skip to content

Revert removal of -package-name from swiftinterfaces #77408

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 3 commits into from
Nov 6, 2024

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Nov 5, 2024

In an attempt to work around some bugs, -package-name was removed from public and private .swiftinterface files (#76244). This has the side effect of breaking access level checking for @usableFromInline package declarations in .swiftinterfaces, so another workaround was implemented to give them special behavior (#75745). The combination of these changes has caused source compatibility regressions because @usableFromInline package members of SDK modules are now accessible to name lookup where they were not previously, which can result in ambiguities.

There was another fix for the root cause of the original problem that motivated removing -package-name from non-package interfaces, so we can safely revert both of #76244 and #75745. They should not be reattempted as it is not sound to disassociate package declarations from their package context.

Resolves rdar://139236053.

Partially resolves rdar://139236053.
Finishes resolving rdar://139236053.
After reverting swiftlang#75745 some expectations
needed to change in this test.
@tshortli
Copy link
Contributor Author

tshortli commented Nov 5, 2024

@swift-ci please test

Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tshortli tshortli merged commit b345418 into swiftlang:main Nov 6, 2024
5 checks passed
@tshortli tshortli deleted the revert-package-fixes branch November 6, 2024 18:31
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.

3 participants