mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Eradicate IndexDistance associated type (#12641)
* Eradicate IndexDistance associated type, replacing with Int everywhere * Consistently use Int for ExistentialCollection’s IndexDistance type. * Fix test for IndexDistance removal * Remove a handful of no-longer-needed explicit types * Add compatibility shims for non-Int index distances * Test compatibility shim * Move IndexDistance typealias into the Collection protocol
This commit is contained in:
@@ -211,7 +211,6 @@ extension String._CharacterView : BidirectionalCollection {
|
||||
}
|
||||
|
||||
public typealias Index = String.Index
|
||||
public typealias IndexDistance = Int
|
||||
|
||||
/// The position of the first character in a nonempty character view.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user