Skip to content

Commit f358c1e

Browse files
committed
Revert "[Concurrency] Hashable funcs should be inlinable for AsyncStream"
This reverts commit 06bb718.
1 parent 22efac8 commit f358c1e

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

stdlib/public/Concurrency/AsyncStream.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ public struct AsyncStream<Element> {
177177
case bufferingNewest(Int)
178178
}
179179

180-
@usableFromInline
181180
let storage: _Storage
182181

183182
/// Resume the task awaiting the next iteration point by having it return
@@ -478,17 +477,14 @@ extension AsyncStream.Continuation.YieldResult: Sendable where Element: Sendable
478477

479478
@available(SwiftStdlib 6.2, *)
480479
extension AsyncStream.Continuation: Hashable {
481-
@inlinable
482480
@available(SwiftStdlib 6.2, *)
483481
public func hash(into hasher: inout Hasher) {
484482
return hasher.combine(ObjectIdentifier(storage))
485483
}
486-
@inlinable
487484
@available(SwiftStdlib 6.2, *)
488485
public var hashValue: Int {
489486
return _hashValue(for: self)
490487
}
491-
@inlinable
492488
@available(SwiftStdlib 6.2, *)
493489
public static func == (lhs: Self, rhs: Self) -> Bool {
494490
return lhs.storage === rhs.storage

stdlib/public/Concurrency/AsyncStreamBuffer.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ func _unlock(_ ptr: UnsafeRawPointer)
5555
@available(SwiftStdlib 5.1, *)
5656
extension AsyncStream {
5757
@safe
58-
@usableFromInline
5958
internal final class _Storage: @unchecked Sendable {
6059
typealias TerminationHandler = @Sendable (Continuation.Termination) -> Void
6160

@@ -282,7 +281,6 @@ extension AsyncStream {
282281
@available(SwiftStdlib 5.1, *)
283282
extension AsyncThrowingStream {
284283
@safe
285-
@usableFromInline
286284
internal final class _Storage: @unchecked Sendable {
287285
typealias TerminationHandler = @Sendable (Continuation.Termination) -> Void
288286
enum Terminal {

stdlib/public/Concurrency/AsyncThrowingStream.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ public struct AsyncThrowingStream<Element, Failure: Error> {
199199
case bufferingNewest(Int)
200200
}
201201

202-
@usableFromInline
203202
let storage: _Storage
204203

205204
/// Resume the task awaiting the next iteration point by having it return
@@ -524,17 +523,14 @@ extension AsyncThrowingStream.Continuation.YieldResult: Sendable where Element:
524523

525524
@available(SwiftStdlib 6.2, *)
526525
extension AsyncThrowingStream.Continuation: Hashable {
527-
@inlinable
528526
@available(SwiftStdlib 6.2, *)
529527
public func hash(into hasher: inout Hasher) {
530528
return hasher.combine(ObjectIdentifier(storage))
531529
}
532-
@inlinable
533530
@available(SwiftStdlib 6.2, *)
534531
public var hashValue: Int {
535532
return _hashValue(for: self)
536533
}
537-
@inlinable
538534
@available(SwiftStdlib 6.2, *)
539535
public static func == (lhs: Self, rhs: Self) -> Bool {
540536
return lhs.storage === rhs.storage

0 commit comments

Comments
 (0)