Skip to content

Commit fb0c669

Browse files
authored
generator: Silence extension conformance warning (#162)
Swift 6.0 complains: warning: extension declares a conformance of imported type 'Triple' to imported protocol 'ExpressibleByArgument' This warning can be silenced by qualifying the names: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0364-retroactive-conformance-warning.md#source-compatibility Testing: * Builds with Swift 5.8, 5.9 and 6.0 * EndToEndTests continue to pass locally.
1 parent e006f30 commit fb0c669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/GeneratorCLI/GeneratorCLI.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ struct GeneratorCLI: AsyncParsableCommand {
6161
}
6262
}
6363

64-
extension Triple.Arch: ExpressibleByArgument {}
65-
extension Triple: ExpressibleByArgument {
64+
extension Triple.Arch: ArgumentParser.ExpressibleByArgument {}
65+
extension Triple: ArgumentParser.ExpressibleByArgument {
6666
public init?(argument: String) {
6767
self.init(argument, normalizing: false)
6868
}

0 commit comments

Comments
 (0)