File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed
stdlib/public/Synchronization/Atomics
stdlib/Synchronization/Atomics Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,6 @@ extension WordPair: Hashable {
185
185
186
186
@available ( SwiftStdlib 6 . 2 , * )
187
187
extension WordPair : Comparable {
188
- // Note: This function can have a lower availability than the conformance
189
- // itself because it's always emit into client.
190
188
@available ( SwiftStdlib 6 . 2 , * )
191
189
@_alwaysEmitIntoClient
192
190
@_transparent
Original file line number Diff line number Diff line change @@ -698,3 +698,6 @@ Added: _$s15Synchronization20AtomicUpdateOrderingV22sequentiallyConsistentACvpZM
698
698
Added: _$s15Synchronization20AtomicUpdateOrderingV7relaxedACvpZMV
699
699
Added: _$s15Synchronization20AtomicUpdateOrderingV9acquiringACvpZMV
700
700
Added: _$s15Synchronization20AtomicUpdateOrderingV9releasingACvpZMV
701
+
702
+ // WordPair to Comparable conformance
703
+ Added: _$s15Synchronization8WordPairVSLAAMc
Original file line number Diff line number Diff line change @@ -692,3 +692,6 @@ Added: _$s15Synchronization20AtomicUpdateOrderingV22sequentiallyConsistentACvpZM
692
692
Added: _$s15Synchronization20AtomicUpdateOrderingV7relaxedACvpZMV
693
693
Added: _$s15Synchronization20AtomicUpdateOrderingV9acquiringACvpZMV
694
694
Added: _$s15Synchronization20AtomicUpdateOrderingV9releasingACvpZMV
695
+
696
+ // WordPair to Comparable conformance
697
+ Added: _$s15Synchronization8WordPairVSLAAMc
Original file line number Diff line number Diff line change @@ -45,7 +45,12 @@ suite.test("basics") {
45
45
let value1 = WordPair ( first: . max, second: 0 )
46
46
expectEqual ( value1. first, . max)
47
47
expectEqual ( value1. second, 0 )
48
+ }
49
+
50
+ } // if #available(SwiftStdlib 6.0, *)
48
51
52
+ if #available( SwiftStdlib 6 . 2 , * ) {
53
+ suite. test ( " comparable " ) {
49
54
let c0 = WordPair ( first: 0 , second: 0 )
50
55
let c1 = WordPair ( first: 1 , second: 0 )
51
56
let c2 = WordPair ( first: 2 , second: 0 )
@@ -60,7 +65,6 @@ suite.test("basics") {
60
65
expectTrue ( c4 < c5)
61
66
expectFalse ( c5 < c4)
62
67
}
63
-
64
- } // if #available(SwiftStdlib 6.0, *)
68
+ } // if #available(SwiftStdlib 6.2, *)
65
69
66
70
runAllTests ( )
You can’t perform that action at this time.
0 commit comments