Skip to content

Conversation

@tshortli
Copy link
Contributor

@tshortli tshortli commented Oct 26, 2025

The Swift 6.2 compiler emits spurious warnings about retroactive conformances to protocols that are inherited through a protocol that is written module qualified in the inheritance clause (the Swift compiler bug is tracked by swiftlang/swift#85153). Suppress the warnings by making the inherited conformances explicit and module qualified.

@tshortli tshortli force-pushed the work-around-swift-6.2-retroactive-conformance-warnings branch from dfd4206 to 4baf5fc Compare October 26, 2025 22:50
@tshortli
Copy link
Contributor Author

@swift-ci please test

@tshortli
Copy link
Contributor Author

@swift-ci please test Windows

Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

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

Do we have an issue for that bug? If so, could we add a comment that references it and a comment that says that we can remove this workaround once we no longer support Swift 6.2?

@tshortli tshortli force-pushed the work-around-swift-6.2-retroactive-conformance-warnings branch from 4baf5fc to 61d935e Compare October 27, 2025 16:33
@tshortli
Copy link
Contributor Author

Do we have an issue for that bug? If so, could we add a comment that references it and a comment that says that we can remove this workaround once we no longer support Swift 6.2?

Sure, there wasn't an issue but I filed one for tracking purposes and mentioned it by the workarounds.

The Swift 6.2 compiler emits spurious warnings about retroactive conformances
to protocols that are inherited through a protocol that is written module
qualified in the inheritance clause (the Swift compiler bug is tracked by
swiftlang/swift#85153). Suppress the warnings by
making the inherited conformances explicit and module qualified.
@tshortli tshortli force-pushed the work-around-swift-6.2-retroactive-conformance-warnings branch from 61d935e to 8ae4577 Compare October 27, 2025 16:35
@tshortli
Copy link
Contributor Author

@swift-ci please test

Copy link
Member

@ahoppen ahoppen 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!

@ahoppen
Copy link
Member

ahoppen commented Oct 27, 2025

@swift-ci Please test

@tshortli tshortli enabled auto-merge October 27, 2025 19:14
@tshortli tshortli merged commit ef367f7 into swiftlang:main Oct 28, 2025
36 checks passed
@tshortli tshortli deleted the work-around-swift-6.2-retroactive-conformance-warnings branch October 28, 2025 00:57
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.

2 participants