Skip to content

Commit 22dd0e8

Browse files
committed
WIP: AEIC
1 parent 514228a commit 22dd0e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/core/StringUnicodeScalarView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ extension String.UnicodeScalarView: BidirectionalCollection {
118118
return _foreignIndex(after: i)
119119
}
120120

121+
@_alwaysEmitIntoClient // Swift 5.1 bug fix
121122
public func distance(from start: Index, to end: Index) -> Int {
122123
return _distance(from: _guts.scalarAlign(start), to: _guts.scalarAlign(end))
123124
}

0 commit comments

Comments
 (0)