File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -776,6 +776,9 @@ public protocol Collection: Sequence where SubSequence: Collection {
776
776
/// - Parameter i: A valid index of the collection. `i` must be less than
777
777
/// `endIndex`.
778
778
func formIndex( after i: inout Index)
779
+
780
+ @available ( swift, deprecated, message: " all index distances are now of type Int " )
781
+ typealias IndexDistance = Int
779
782
}
780
783
781
784
/// Default implementation for forward collections.
@@ -1695,17 +1698,9 @@ extension Collection {
1695
1698
// guarantees of Swift 3, but it cannot due to a bug.
1696
1699
@available ( * , unavailable, renamed: " Iterator " )
1697
1700
public typealias Generator = Iterator
1698
- }
1699
1701
1700
- extension Collection {
1701
1702
@available ( swift, deprecated: 3.2 , renamed: " Element " )
1702
1703
public typealias _Element = Element
1703
- }
1704
-
1705
-
1706
- extension Collection {
1707
- @available ( swift, deprecated, message: " all index distances are now of type Int " )
1708
- public typealias IndexDistance = Int
1709
1704
1710
1705
@available ( * , deprecated, message: " all index distances are now of type Int " )
1711
1706
public func index< T: BinaryInteger > ( _ i: Index , offsetBy n: T ) -> Index {
You can’t perform that action at this time.
0 commit comments