We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c60de3c + 6c5ad1c commit 78e9e90Copy full SHA for 78e9e90
stdlib/public/core/NormalizedCodeUnitIterator.swift
@@ -63,7 +63,11 @@ struct _NormalizedCodeUnitIterator: IteratorProtocol {
63
where Source.Element == UInt16, Source.SubSequence == Source
64
{
65
var remaining: Int {
66
- return collection.distance(from: index, to: collection.endIndex)
+ @_specialize(where Source == _UnmanagedString<UInt16>)
67
+ @_specialize(where Source == _UnmanagedOpaqueString)
68
+ get {
69
+ return collection.distance(from: index, to: collection.endIndex)
70
+ }
71
}
72
var collection: Source
73
var index: Source.Index
0 commit comments