Skip to content

Commit 9f7d6ce

Browse files
authored
[stdlib] Mark two types @usableFromInline; they satisfy requirements (#18862)
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.
1 parent 811e979 commit 9f7d6ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/UnmanagedOpaqueString.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ extension _UnmanagedOpaqueString : RandomAccessCollection {
223223
}
224224

225225
extension _UnmanagedOpaqueString : _StringVariant {
226-
internal typealias Encoding = Unicode.UTF16
227-
internal typealias CodeUnit = Encoding.CodeUnit
226+
@usableFromInline internal typealias Encoding = Unicode.UTF16
227+
@usableFromInline internal typealias CodeUnit = Encoding.CodeUnit
228228

229229
@inlinable
230230
var isASCII: Bool {

0 commit comments

Comments
 (0)