Skip to content

Commit 1f39896

Browse files
committed
[stdlib] Add availability annotation to other new conformances and members
1 parent ef9319e commit 1f39896

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

stdlib/public/core/DropWhile.swift.gyb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ public struct LazyDropWhileIndex<Base : Collection> : Comparable {
140140
}
141141
}
142142

143+
@available(swift, introduced: 4.1) // FIXME(conformance-availability)
143144
extension LazyDropWhileIndex : Hashable where Base.Index : Hashable {
145+
@available(swift, introduced: 4.1)
144146
public var hashValue: Int {
145147
return base.hashValue
146148
}

stdlib/public/core/Flatten.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,10 @@ extension FlattenCollection.Index : Comparable {
230230
}
231231
}
232232

233+
@available(swift, introduced: 4.1) // FIXME(conformance-availability)
233234
extension FlattenCollection.Index : Hashable
234235
where Base.Index : Hashable, Base.Element.Index : Hashable {
236+
@available(swift, introduced: 4.1)
235237
public var hashValue: Int {
236238
return _mixInt(_inner?.hashValue ?? 0) ^ _outer.hashValue
237239
}

stdlib/public/core/PrefixWhile.swift.gyb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ public struct LazyPrefixWhileIndex<Base : Collection> : Comparable {
162162
}
163163
}
164164

165+
@available(swift, introduced: 4.1) // FIXME(conformance-availability)
165166
extension LazyPrefixWhileIndex : Hashable where Base.Index : Hashable {
167+
@available(swift, introduced: 4.1)
166168
public var hashValue: Int {
167169
switch _value {
168170
case .index(let value):

stdlib/public/core/Reverse.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ extension ReversedCollection.Index: Comparable {
193193
}
194194
}
195195

196+
@available(swift, introduced: 4.1) // FIXME(conformance-availability)
196197
extension ReversedCollection.Index: Hashable where Base.Index: Hashable {
198+
@available(swift, introduced: 4.1)
197199
public var hashValue: Int {
198200
return base.hashValue
199201
}

0 commit comments

Comments
 (0)