From cd36fc3de9963588788378389795151fc57d2a2a Mon Sep 17 00:00:00 2001 From: Euan Harris Date: Fri, 29 Nov 2024 08:37:05 +0000 Subject: [PATCH] generator: Silence extension conformance warning 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. --- Sources/GeneratorCLI/GeneratorCLI.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/GeneratorCLI/GeneratorCLI.swift b/Sources/GeneratorCLI/GeneratorCLI.swift index 5017f33..5d54f85 100644 --- a/Sources/GeneratorCLI/GeneratorCLI.swift +++ b/Sources/GeneratorCLI/GeneratorCLI.swift @@ -61,8 +61,8 @@ struct GeneratorCLI: AsyncParsableCommand { } } -extension Triple.Arch: ExpressibleByArgument {} -extension Triple: ExpressibleByArgument { +extension Triple.Arch: ArgumentParser.ExpressibleByArgument {} +extension Triple: ArgumentParser.ExpressibleByArgument { public init?(argument: String) { self.init(argument, normalizing: false) }