Skip to content

Commit 65fe556

Browse files
committed
[stdlib] Mark associated type witnesses as @usableFromInline
Inlinable code is permitted to rely on these associated types, so we need to make sure their declarations are printed in the parseable interface. Part of rdar://problem/43824052
1 parent 4db1efa commit 65fe556

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

stdlib/public/core/ArrayBuffer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ extension _ArrayBuffer {
504504
return count
505505
}
506506

507+
@usableFromInline
507508
internal typealias Indices = Range<Int>
508509

509510
//===--- private --------------------------------------------------------===//

stdlib/public/core/CocoaArray.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ import SwiftShims
2828
@usableFromInline
2929
@_fixed_layout
3030
internal struct _CocoaArrayWrapper : RandomAccessCollection {
31+
@usableFromInline
3132
typealias Indices = Range<Int>
33+
3234
@inlinable
3335
internal var startIndex: Int {
3436
return 0

stdlib/public/core/ContiguousArrayBuffer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ extension _ContiguousArrayBuffer : RandomAccessCollection {
551551
return count
552552
}
553553

554+
@usableFromInline
554555
internal typealias Indices = Range<Int>
555556
}
556557

stdlib/public/core/SliceBuffer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ internal struct _SliceBuffer<Element>
344344
}
345345
}
346346

347+
@usableFromInline
347348
internal typealias Indices = Range<Int>
348349

349350
//===--- misc -----------------------------------------------------------===//

0 commit comments

Comments
 (0)