Skip to content

Commit 68c7c85

Browse files
authored
Merge pull request #81288 from swiftlang/revert-81127-pick-wip-inlinable-for-hashable-asyncstream
Revert "[6.2][Concurrency] Hashable funcs should be inlinable for AsyncStream"
2 parents 696ba3e + 36a93dc commit 68c7c85

File tree

6 files changed

+0
-53
lines changed

6 files changed

+0
-53
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

test/abi/macOS/arm64/concurrency.swift

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -414,21 +414,3 @@ Added: _swift_task_dealloc_through
414414

415415
// SwiftSettings
416416
Added: _$ss12SwiftSettingVsE16defaultIsolationyABScA_pXpSgFZ
417-
418-
// Hashable for (Throwing)AsyncStream
419-
Added: _$sScS12ContinuationV7storageScS8_StorageCyx_Gvg
420-
Added: _$sScS12ContinuationV7storageScS8_StorageCyx_GvpMV
421-
Added: _$sScS8_StorageCMa
422-
Added: _$sScS8_StorageCMn
423-
Added: _$sScS8_StorageCMo
424-
Added: _$sScS8_StorageCMu
425-
Added: _$sScS8_StorageCfD
426-
Added: _$sScS8_StorageCfd
427-
Added: _$sScs12ContinuationV7storageScs8_StorageCyxq__Gvg
428-
Added: _$sScs12ContinuationV7storageScs8_StorageCyxq__GvpMV
429-
Added: _$sScs8_StorageCMa
430-
Added: _$sScs8_StorageCMn
431-
Added: _$sScs8_StorageCMo
432-
Added: _$sScs8_StorageCMu
433-
Added: _$sScs8_StorageCfD
434-
Added: _$sScs8_StorageCfd

test/abi/macOS/x86_64/concurrency.swift

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -414,21 +414,3 @@ Added: _swift_task_dealloc_through
414414

415415
// SwiftSettings
416416
Added: _$ss12SwiftSettingVsE16defaultIsolationyABScA_pXpSgFZ
417-
418-
// Hashable for (Throwing)AsyncStream
419-
Added: _$sScS12ContinuationV7storageScS8_StorageCyx_Gvg
420-
Added: _$sScS12ContinuationV7storageScS8_StorageCyx_GvpMV
421-
Added: _$sScS8_StorageCMa
422-
Added: _$sScS8_StorageCMn
423-
Added: _$sScS8_StorageCMo
424-
Added: _$sScS8_StorageCMu
425-
Added: _$sScS8_StorageCfD
426-
Added: _$sScS8_StorageCfd
427-
Added: _$sScs12ContinuationV7storageScs8_StorageCyxq__Gvg
428-
Added: _$sScs12ContinuationV7storageScs8_StorageCyxq__GvpMV
429-
Added: _$sScs8_StorageCMa
430-
Added: _$sScs8_StorageCMn
431-
Added: _$sScs8_StorageCMo
432-
Added: _$sScs8_StorageCMu
433-
Added: _$sScs8_StorageCfD
434-
Added: _$sScs8_StorageCfd

test/api-digester/stability-concurrency-abi.test

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,6 @@ Func withThrowingTaskGroup(of:returning:body:) has parameter 2 type change from
128128
Func withTaskGroup(of:returning:body:) has been renamed to Func withTaskGroup(of:returning:isolation:body:)
129129
Func withTaskGroup(of:returning:body:) has mangled name changing from '_Concurrency.withTaskGroup<A, B where A: Swift.Sendable>(of: A.Type, returning: B.Type, body: (inout Swift.TaskGroup<A>) async -> B) async -> B' to '_Concurrency.withTaskGroup<A, B where A: Swift.Sendable>(of: A.Type, returning: B.Type, isolation: isolated Swift.Optional<Swift.Actor>, body: (inout Swift.TaskGroup<A>) async -> B) async -> B'
130130

131-
// Hashable for (Throwing)AsyncStream
132-
// These are just @usableFromInline:
133-
Var AsyncStream.Continuation.storage is a new API without '@available'
134-
Var AsyncThrowingStream.Continuation.storage is a new API without '@available'
135-
Class AsyncStream._Storage is a new API without '@available'
136-
Class AsyncThrowingStream._Storage is a new API without '@available'
137-
138131
// *** DO NOT DISABLE OR XFAIL THIS TEST. *** (See comment above.)
139132

140133

0 commit comments

Comments
 (0)