From ff3d4f672bf4e6f66f639fb33d79544a198d6a14 Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Mon, 20 Aug 2018 18:16:22 -0700 Subject: [PATCH] [stdlib] Mark two types @usableFromInline; they satisfy requirements Otherwise, the textual interface won't see them, and any inlinable code that wants to make use of the protocol might get confused. We should have a check for this in the compiler itself, but for now I'm just providing this change to get unblocked. --- stdlib/public/core/UnmanagedOpaqueString.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/public/core/UnmanagedOpaqueString.swift b/stdlib/public/core/UnmanagedOpaqueString.swift index 51f4e03b3cd97..1143abf384c62 100644 --- a/stdlib/public/core/UnmanagedOpaqueString.swift +++ b/stdlib/public/core/UnmanagedOpaqueString.swift @@ -223,8 +223,8 @@ extension _UnmanagedOpaqueString : RandomAccessCollection { } extension _UnmanagedOpaqueString : _StringVariant { - internal typealias Encoding = Unicode.UTF16 - internal typealias CodeUnit = Encoding.CodeUnit + @usableFromInline internal typealias Encoding = Unicode.UTF16 + @usableFromInline internal typealias CodeUnit = Encoding.CodeUnit @inlinable var isASCII: Bool {