Skip to content

Commit ce2da1a

Browse files
committed
[Concurrency] adjust abi test for hashable async stream
1 parent 1cfef25 commit ce2da1a

File tree

4 files changed

+43
-3
lines changed

4 files changed

+43
-3
lines changed

stdlib/public/Concurrency/AsyncStream.swift

-3
Original file line numberDiff line numberDiff line change
@@ -480,19 +480,16 @@ extension AsyncStream.Continuation.YieldResult: Sendable where Element: Sendable
480480
extension AsyncStream.Continuation: Hashable {
481481
@inlinable
482482
@available(SwiftStdlib 6.2, *)
483-
@inlinable
484483
public func hash(into hasher: inout Hasher) {
485484
return hasher.combine(ObjectIdentifier(storage))
486485
}
487486
@inlinable
488487
@available(SwiftStdlib 6.2, *)
489-
@inlinable
490488
public var hashValue: Int {
491489
return _hashValue(for: self)
492490
}
493491
@inlinable
494492
@available(SwiftStdlib 6.2, *)
495-
@inlinable
496493
public static func == (lhs: Self, rhs: Self) -> Bool {
497494
return lhs.storage === rhs.storage
498495
}

test/abi/macOS/arm64/concurrency.swift

+18
Original file line numberDiff line numberDiff line change
@@ -413,3 +413,21 @@ Added: _swift_task_dealloc_through
413413

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

test/abi/macOS/x86_64/concurrency.swift

+18
Original file line numberDiff line numberDiff line change
@@ -413,3 +413,21 @@ Added: _swift_task_dealloc_through
413413

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

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

+7
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@ 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+
131138
// *** DO NOT DISABLE OR XFAIL THIS TEST. *** (See comment above.)
132139

133140

0 commit comments

Comments
 (0)