Skip to content

Commit 80a292b

Browse files
committed
ASTGen: Work around a retroactive conformance bug in Swift 6.2.
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. Suppress the warnings by making the inherited conformances explicit and module qualified.
1 parent bf9598a commit 80a292b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/ASTGen/Sources/ASTGen/Bridge.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,11 @@ public func freeBridgedString(bridged: BridgedStringRef) {
157157
bridged.data?.deallocate()
158158
}
159159

160-
extension BridgedStringRef: /*@retroactive*/ Swift.ExpressibleByStringLiteral {
160+
extension BridgedStringRef:
161+
/*@retroactive*/ Swift.ExpressibleByStringLiteral,
162+
Swift.ExpressibleByExtendedGraphemeClusterLiteral,
163+
Swift.ExpressibleByUnicodeScalarLiteral
164+
{
161165
public init(stringLiteral str: StaticString) {
162166
self.init(data: str.utf8Start, count: str.utf8CodeUnitCount)
163167
}

0 commit comments

Comments
 (0)