Skip to content

Commit a4b9902

Browse files
authored
Fix warnings about retroactive conformance to protocols in 'generate-symbol-graph' tool (#1275)
1 parent 4a871f8 commit a4b9902

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/generate-symbol-graph/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func directiveUSR(_ directiveName: String) -> String {
6161
// The `@retroactive` attribute is new in the Swift 6 compiler. The backwards compatible syntax for a retroactive conformance is fully-qualified types.
6262
//
6363
// This conformance it only relevant to the `generate-symbol-graph` script.
64-
extension SymbolKit.SymbolGraph.Symbol.DeclarationFragments.Fragment: Swift.ExpressibleByStringInterpolation {
64+
extension SymbolKit.SymbolGraph.Symbol.DeclarationFragments.Fragment: Swift.ExpressibleByStringInterpolation, Swift.ExpressibleByUnicodeScalarLiteral, Swift.ExpressibleByExtendedGraphemeClusterLiteral, Swift.ExpressibleByStringLiteral {
6565
public init(stringLiteral value: String) {
6666
self.init(kind: .text, spelling: value, preciseIdentifier: nil)
6767
}
@@ -79,7 +79,7 @@ extension SymbolKit.SymbolGraph.Symbol.DeclarationFragments.Fragment: Swift.Expr
7979
// The `@retroactive` attribute is new in the Swift 6 compiler. The backwards compatible syntax for a retroactive conformance is fully-qualified types.
8080
//
8181
// This conformance it only relevant to the `generate-symbol-graph` script.
82-
extension SymbolKit.SymbolGraph.LineList.Line: Swift.ExpressibleByStringInterpolation {
82+
extension SymbolKit.SymbolGraph.LineList.Line: Swift.ExpressibleByStringInterpolation, Swift.ExpressibleByUnicodeScalarLiteral, Swift.ExpressibleByExtendedGraphemeClusterLiteral, Swift.ExpressibleByStringLiteral {
8383
public init(stringLiteral value: String) {
8484
self.init(text: value, range: nil)
8585
}

0 commit comments

Comments
 (0)