Remove extraneous 'Self.' from constrained extension where clauses.

NFC; cleans up the standard library implementation slightly.

Swift SVN r28209
This commit is contained in:
Doug Gregor
2015-05-06 17:05:29 +00:00
parent a924e06025
commit 2105aa7394
2 changed files with 11 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ extension CollectionType {
// last
//===----------------------------------------------------------------------===//
extension CollectionType where Self.Index : BidirectionalIndexType {
extension CollectionType where Index : BidirectionalIndexType {
final public var _prext_last: Generator.Element? {
return _prext_isEmpty ? nil : self[endIndex.predecessor()]
}
@@ -43,7 +43,7 @@ extension CollectionType where Self.Index : BidirectionalIndexType {
// find()
//===----------------------------------------------------------------------===//
extension CollectionType where Self.${GElement} : Equatable {
extension CollectionType where ${GElement} : Equatable {
/// Returns the first index where `value` appears in `self` or `nil` if
/// `value` is not found.
///
@@ -127,7 +127,7 @@ orderingRequirementForComparable = """\
}%
extension MutableCollectionType
where Self.Index : RandomAccessIndexType, Self.${GElement} : Comparable {
where Index : RandomAccessIndexType, ${GElement} : Comparable {
${partitionDocComment}
///
@@ -137,7 +137,7 @@ ${orderingRequirementForComparable}
}
}
extension MutableCollectionType where Self.Index : RandomAccessIndexType {
extension MutableCollectionType where Index : RandomAccessIndexType {
${partitionDocComment}
///