Skip to content

Commit 904b18f

Browse files
authored
Merge pull request #16692 from eeckstein/add-inlinable
stdlib: make Sequence -> SmallString inlinable
2 parents fabb5ab + 0868f28 commit 904b18f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

stdlib/public/core/SmallString.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -464,10 +464,7 @@ extension _SmallUTF8String {
464464

465465
// NOTE: This exists to facilitate _fromCodeUnits, which is awful for this use
466466
// case. Please don't call this from anywhere else.
467-
@usableFromInline
468-
@inline(never) // @outlined
469-
// @_specialize(where Encoding == UTF16)
470-
// @_specialize(where Encoding == UTF8)
467+
@inlinable
471468
init?<S: Sequence, Encoding: Unicode.Encoding>(
472469
_fromCodeUnits codeUnits: S,
473470
utf16Length: Int,

0 commit comments

Comments
 (0)