From dd45c800623379ac6b1c2a6eff79ada5fd5e225a Mon Sep 17 00:00:00 2001 From: Jeremy Schonfeld Date: Thu, 2 May 2024 13:07:27 -0700 Subject: [PATCH] Disfavor String.init(platformString: UnsafePointer) --- Sources/System/PlatformString.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/System/PlatformString.swift b/Sources/System/PlatformString.swift index 35fab59..3aecf97 100644 --- a/Sources/System/PlatformString.swift +++ b/Sources/System/PlatformString.swift @@ -20,6 +20,7 @@ extension String { /// This means that, depending on the semantics of the specific platform, /// conversion to a string and back might result in a value that's different /// from the original platform string. + @_disfavoredOverload public init(platformString: UnsafePointer) { self.init(_errorCorrectingPlatformString: platformString) }