Skip to content

Use fully-qualified types instead of @retroactive conformances #2862

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
Sep 27, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Sep 26, 2024

When increasing the tools version of swift-syntax to 5.9 or higher, the package is built with -package-name. It appears that conformances within the same package domain are not considered retroactive, which means that the addition of @retroactive produces a compilation error.

To allow swift-syntax to build both within a single package domain and without, use fully-qualified types instead of @retroactive in the potentially retroactive conformances.

Fixes #2844

When increasing the tools version of swift-syntax to 5.9 or higher, the package is built with `-package-name`. It appears that conformances within the same package domain are not considered retroactive, which means that the addition of `@retroactive` produces a compilation error.

To allow swift-syntax to build both within a single package domain and without, use fully-qualified types instead of `@retroactive` in the potentially retroactive conformances.

Fixes swiftlang#2844
@ahoppen ahoppen requested a review from bnbarham as a code owner September 26, 2024 18:31
@ahoppen
Copy link
Member Author

ahoppen commented Sep 26, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Sep 26, 2024

@swift-ci Please test macOS

1 similar comment
@ahoppen
Copy link
Member Author

ahoppen commented Sep 26, 2024

@swift-ci Please test macOS

@ahoppen ahoppen merged commit 1e8e227 into swiftlang:main Sep 27, 2024
3 checks passed
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.

[Swift 6.0] Xcode Beta 16 build failure
1 participant