File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ public struct Character :
136
136
return UInt64 ( Builtin . zext_Int63_Int64 ( value) ) | ( 1 <<63 )
137
137
}
138
138
139
- internal struct _SmallUTF8 : Collection {
139
+ internal struct _SmallUTF8 : RandomAccessCollection {
140
140
init ( _ u8: UInt64 ) {
141
141
let utf8Count = Character . _smallSize ( u8)
142
142
_sanityCheck ( utf8Count <= 8 , " Character with more than 8 UTF-8 code units " )
@@ -198,7 +198,7 @@ public struct Character :
198
198
var data : UInt64
199
199
}
200
200
201
- struct _SmallUTF16 : Collection {
201
+ struct _SmallUTF16 : RandomAccessCollection {
202
202
init ( _ u8: UInt64 ) {
203
203
let count = UTF16 . transcodedLength (
204
204
of: _SmallUTF8 ( u8) . makeIterator ( ) ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import SwiftShims
25
25
/// `Collection` conformance. Why not make
26
26
/// `_NSArrayCore` conform directly? It's a class, and I
27
27
/// don't want to pay for the dynamic dispatch overhead.
28
- internal struct _CocoaArrayWrapper : Collection {
28
+ internal struct _CocoaArrayWrapper : RandomAccessCollection {
29
29
var startIndex : Int {
30
30
return 0
31
31
}
Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ internal extension Mirror {
525
525
/// appropriate for random access! To avoid this pitfall, convert
526
526
/// mirrors to use the new style, which only present forward
527
527
/// traversal in general.
528
- internal struct LegacyChildren : Collection {
528
+ internal struct LegacyChildren : RandomAccessCollection {
529
529
init ( _ oldMirror: _Mirror ) {
530
530
self . _oldMirror = oldMirror
531
531
}
You can’t perform that action at this time.
0 commit comments