Skip to content

Commit 460bb99

Browse files
committed
Add entries to source/ABI compatible expected results.
1 parent 97a26fe commit 460bb99

File tree

2 files changed

+139
-7
lines changed

2 files changed

+139
-7
lines changed

test/api-digester/Outputs/stability-stdlib-abi.swift.expected

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,79 @@ Class _StringStorage is now without @_fixed_layout
7575
Class _SharedStringStorage has removed conformance to _NSStringCore
7676
Class _StringStorage has removed conformance to _NSStringCore
7777
Protocol _NSStringCore has been removed
78+
79+
/* SE-0234 */
80+
AssociatedType Sequence.SubSequence has been removed
81+
Constructor _DropWhileSequence.init(iterator:nextElement:predicate:) has been removed
82+
Func AnyBidirectionalCollection.split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
83+
Func AnyCollection.split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
84+
Func AnyRandomAccessCollection.split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
85+
Func AnySequence.dropLast(_:) has return type change from AnySequence<τ_0_0> to Array<τ_0_0>
86+
Func AnySequence.prefix(while:) has return type change from AnySequence<τ_0_0> to Array<τ_0_0>
87+
Func AnySequence.split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
88+
Func AnySequence.suffix(_:) has return type change from AnySequence<τ_0_0> to Array<τ_0_0>
89+
Func Collection.joined() has been removed
90+
Func DropFirstSequence.dropFirst(_:) has return type change from AnySequence<τ_0_0.Element> to DropFirstSequence<τ_0_0>
91+
Func PrefixSequence.prefix(_:) has return type change from AnySequence<τ_0_0.Element> to PrefixSequence<τ_0_0>
92+
Func Sequence.drop(while:) has return type change from τ_0_0.SubSequence to DropWhileSequence<τ_0_0>
93+
Func Sequence.dropFirst() has been removed
94+
Func Sequence.dropFirst(_:) has return type change from τ_0_0.SubSequence to DropFirstSequence<τ_0_0>
95+
Func Sequence.dropLast() has been removed
96+
Func Sequence.dropLast(_:) has return type change from τ_0_0.SubSequence to Array<τ_0_0.Element>
97+
Func Sequence.prefix(_:) has return type change from τ_0_0.SubSequence to PrefixSequence<τ_0_0>
98+
Func Sequence.prefix(while:) has return type change from τ_0_0.SubSequence to Array<τ_0_0.Element>
99+
Func Sequence.split(maxSplits:omittingEmptySubsequences:whereSeparator:) has return type change from Array<τ_0_0.SubSequence> to Array<ArraySlice<τ_0_0.Element>>
100+
Func Sequence.split(separator:maxSplits:omittingEmptySubsequences:) has return type change from Array<τ_0_0.SubSequence> to Array<ArraySlice<τ_0_0.Element>>
101+
Func Sequence.suffix(_:) has return type change from τ_0_0.SubSequence to Array<τ_0_0.Element>
102+
Func _AnyBidirectionalCollectionBox._formIndex(before:) in a non-resilient type changes position from 8 to 7
103+
Func _AnyBidirectionalCollectionBox._index(before:) in a non-resilient type changes position from 7 to 6
104+
Func _AnyBidirectionalCollectionBox._split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
105+
Func _AnyCollectionBox._distance(from:to:) in a non-resilient type changes position from 13 to 12
106+
Func _AnyCollectionBox._formIndex(_:offsetBy:) in a non-resilient type changes position from 11 to 10
107+
Func _AnyCollectionBox._formIndex(_:offsetBy:limitedBy:) in a non-resilient type changes position from 12 to 11
108+
Func _AnyCollectionBox._formIndex(after:) in a non-resilient type changes position from 8 to 7
109+
Func _AnyCollectionBox._index(_:offsetBy:) in a non-resilient type changes position from 9 to 8
110+
Func _AnyCollectionBox._index(_:offsetBy:limitedBy:) in a non-resilient type changes position from 10 to 9
111+
Func _AnyCollectionBox._index(after:) in a non-resilient type changes position from 7 to 6
112+
Func _AnyCollectionBox._split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
113+
Func _AnyRandomAccessCollectionBox._split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
114+
Func _AnySequenceBox._dropLast(_:) has return type change from _AnySequenceBox<τ_0_0> to Array<τ_0_0>
115+
Func _AnySequenceBox._prefix(while:) has return type change from _AnySequenceBox<τ_0_0> to Array<τ_0_0>
116+
Func _AnySequenceBox._split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
117+
Func _AnySequenceBox._suffix(_:) has return type change from _AnySequenceBox<τ_0_0> to Array<τ_0_0>
118+
Func _BidirectionalCollectionBox._split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
119+
Func _CollectionBox._split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
120+
Func _DropWhileSequence.drop(while:) has generic signature change from <τ_0_0 where τ_0_0 : IteratorProtocol> to <τ_0_0 where τ_0_0 : Sequence>
121+
Func _DropWhileSequence.drop(while:) has return type change from AnySequence<τ_0_0.Element> to DropWhileSequence<τ_0_0>
122+
Func _DropWhileSequence.makeIterator() has generic signature change from <τ_0_0 where τ_0_0 : IteratorProtocol> to <τ_0_0 where τ_0_0 : Sequence>
123+
Func _DropWhileSequence.makeIterator() has return type change from _DropWhileSequence<τ_0_0> to DropWhileSequence<τ_0_0>.Iterator
124+
Func _DropWhileSequence.makeIterator() has self access kind changing from __Consuming to NonMutating
125+
Func _DropWhileSequence.next() has been removed
126+
Func _RandomAccessCollectionBox._split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
127+
Func _SequenceBox._dropLast(_:) has return type change from _AnySequenceBox<τ_0_0.Element> to Array<τ_0_0.Element>
128+
Func _SequenceBox._prefix(while:) has return type change from _AnySequenceBox<τ_0_0.Element> to Array<τ_0_0.Element>
129+
Func _SequenceBox._split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
130+
Func _SequenceBox._suffix(_:) has return type change from _AnySequenceBox<τ_0_0.Element> to Array<τ_0_0.Element>
131+
Protocol Collection has generic signature change from <τ_0_0 : Sequence, τ_0_0.Index : Comparable, τ_0_0.Index == τ_0_0.Indices.Element, τ_0_0.Indices : Collection, τ_0_0.Indices == τ_0_0.Indices.SubSequence, τ_0_0.SubSequence : Collection, τ_0_0.Indices.Element == τ_0_0.Indices.Index, τ_0_0.Indices.Index == τ_0_0.SubSequence.Index, τ_0_0.SubSequence.Index == τ_0_0.Indices.Indices.Element, τ_0_0.Indices.Indices.Element == τ_0_0.Indices.Indices.Index, τ_0_0.Indices.Indices.Index == τ_0_0.SubSequence.Indices.Element, τ_0_0.SubSequence.Indices.Element == τ_0_0.SubSequence.Indices.Index, τ_0_0.SubSequence.Indices.Index == τ_0_0.SubSequence.Indices.Indices.Element, τ_0_0.SubSequence.Indices.Indices.Element == τ_0_0.SubSequence.Indices.Indices.Index> to <τ_0_0 : Sequence, τ_0_0.Element == τ_0_0.SubSequence.Element, τ_0_0.Index : Comparable, τ_0_0.Index == τ_0_0.Indices.Element, τ_0_0.Indices : Collection, τ_0_0.Indices == τ_0_0.Indices.SubSequence, τ_0_0.SubSequence : Collection, τ_0_0.SubSequence == τ_0_0.SubSequence.SubSequence, τ_0_0.Indices.Element == τ_0_0.Indices.Index, τ_0_0.Indices.Index == τ_0_0.SubSequence.Index, τ_0_0.SubSequence.Index == τ_0_0.Indices.Indices.Element, τ_0_0.Indices.Indices.Element == τ_0_0.Indices.Indices.Index, τ_0_0.Indices.Indices.Index == τ_0_0.SubSequence.Indices.Element, τ_0_0.SubSequence.Indices.Element == τ_0_0.SubSequence.Indices.Index, τ_0_0.SubSequence.Indices.Index == τ_0_0.SubSequence.Indices.Indices.Element, τ_0_0.SubSequence.Indices.Indices.Element == τ_0_0.SubSequence.Indices.Indices.Index>
132+
Protocol LazyCollectionProtocol has been removed
133+
Protocol Sequence has generic signature change from <τ_0_0.Element == τ_0_0.Iterator.Element, τ_0_0.Iterator : IteratorProtocol, τ_0_0.SubSequence : Sequence, τ_0_0.SubSequence == τ_0_0.SubSequence.SubSequence, τ_0_0.Iterator.Element == τ_0_0.SubSequence.Element, τ_0_0.SubSequence.Element == τ_0_0.SubSequence.Iterator.Element> to <τ_0_0.Element == τ_0_0.Iterator.Element, τ_0_0.Iterator : IteratorProtocol>
134+
Protocol _SequenceWrapper has been removed
135+
Struct AnySequence has removed conformance to Sequence
136+
Struct FlattenCollection has been removed
137+
Struct LazyCollection has been removed
138+
Struct LazyDropWhileCollection has been removed
139+
Struct LazyFilterCollection has been removed
140+
Struct LazyMapCollection has been removed
141+
Struct LazyPrefixWhileCollection has been removed
142+
Struct LazySequence has removed conformance to _SequenceWrapper
143+
Struct ReversedCollection has removed conformance to LazyCollectionProtocol
144+
Struct Slice has removed conformance to LazyCollectionProtocol
145+
Struct _DropWhileSequence has been renamed to Struct DropWhileSequence
146+
Struct _DropWhileSequence has generic signature change from <τ_0_0 where τ_0_0 : IteratorProtocol> to <τ_0_0 where τ_0_0 : Sequence>
147+
Struct _DropWhileSequence has removed conformance to IteratorProtocol
148+
Struct _DropWhileSequence has type witness type for Sequence.Iterator changing from _DropWhileSequence<τ_0_0> to DropWhileSequence<τ_0_0>.Iterator
149+
Var Collection.lazy has been removed
150+
Var Dictionary.keys has declared type change from LazyMapCollection<Dictionary<τ_0_0, τ_0_1>, τ_0_0> to LazyMapSequence<Dictionary<τ_0_0, τ_0_1>, τ_0_0>
151+
Var Dictionary.values has declared type change from LazyMapCollection<Dictionary<τ_0_0, τ_0_1>, τ_0_1> to LazyMapSequence<Dictionary<τ_0_0, τ_0_1>, τ_0_1>
152+
Var LazySequence._base has removed its setter
153+
Var _DropWhileSequence._iterator has declared type change from τ_0_0 to τ_0_0.Iterator

test/api-digester/Outputs/stability-stdlib-source.swift.expected

Lines changed: 63 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ Func Collection.suffix(from:) has been removed
1212
Func Sequence.filter(_:) has been removed
1313
Func Sequence.forEach(_:) has been removed
1414
Func Sequence.map(_:) has been removed
15-
Func _SequenceWrapper.filter(_:) has been removed
16-
Func _SequenceWrapper.forEach(_:) has been removed
17-
Func _SequenceWrapper.map(_:) has been removed
1815
TypeAlias ExpressibleByStringInterpolation has been removed (deprecated)
1916
Var AnyBidirectionalCollection.first has been removed
2017
Var AnyBidirectionalCollection.last has been removed
@@ -24,10 +21,6 @@ Var AnyRandomAccessCollection.last has been removed
2421
Var BidirectionalCollection.last has been removed
2522
Var Collection.first has been removed
2623
Var Dictionary.first has been removed
27-
Var LazyCollection.first has been removed
28-
Var LazyCollection.last has been removed
29-
Var LazyMapCollection.first has been removed
30-
Var LazyMapCollection.last has been removed
3124
Var Set.first has been removed
3225

3326
/* Moved Decls */
@@ -41,3 +34,66 @@ Constructor String.init(stringInterpolation:) has parameter 0 type change from [
4134

4235
/* Protocol Requirement Changes */
4336
Protocol StringProtocol has added inherited protocol ExpressibleByStringInterpolation
37+
38+
/* SE-0234 */
39+
AssociatedType Sequence.SubSequence has been removed
40+
Func AnyBidirectionalCollection.split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
41+
Func AnyCollection.split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
42+
Func AnyRandomAccessCollection.split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
43+
Func AnySequence.dropLast(_:) has return type change from AnySequence<Element> to [Element]
44+
Func AnySequence.prefix(while:) has return type change from AnySequence<Element> to [Element]
45+
Func AnySequence.split(maxSplits:omittingEmptySubsequences:whereSeparator:) has been removed
46+
Func AnySequence.suffix(_:) has return type change from AnySequence<Element> to [Element]
47+
Func Collection.joined() has been removed
48+
Func DropFirstSequence.dropFirst(_:) has return type change from AnySequence<DropFirstSequence<Base>.Element> to DropFirstSequence<Base>
49+
Func PrefixSequence.prefix(_:) has return type change from AnySequence<Base.Element> to PrefixSequence<Base>
50+
Func Sequence.drop(while:) has return type change from Self.SubSequence to DropWhileSequence<Self>
51+
Func Sequence.dropFirst() has been removed
52+
Func Sequence.dropFirst(_:) has return type change from Self.SubSequence to DropFirstSequence<Self>
53+
Func Sequence.dropLast() has been removed
54+
Func Sequence.dropLast(_:) has return type change from Self.SubSequence to [Self.Element]
55+
Func Sequence.prefix(_:) has return type change from Self.SubSequence to PrefixSequence<Self>
56+
Func Sequence.prefix(while:) has return type change from Self.SubSequence to [Self.Element]
57+
Func Sequence.split(maxSplits:omittingEmptySubsequences:whereSeparator:) has return type change from [Self.SubSequence] to [ArraySlice<Self.Element>]
58+
Func Sequence.split(separator:maxSplits:omittingEmptySubsequences:) has return type change from [Self.SubSequence] to [ArraySlice<Self.Element>]
59+
Func Sequence.suffix(_:) has return type change from Self.SubSequence to [Self.Element]
60+
Protocol Collection has generic signature change from <Self : Sequence, Self.Index : Comparable, Self.Index == Self.Indices.Element, Self.Indices : Collection, Self.Indices == Self.Indices.SubSequence, Self.SubSequence : Collection, Self.Indices.Element == Self.Indices.Index, Self.Indices.Index == Self.SubSequence.Index, Self.SubSequence.Index == Self.Indices.Indices.Element, Self.Indices.Indices.Element == Self.Indices.Indices.Index, Self.Indices.Indices.Index == Self.SubSequence.Indices.Element, Self.SubSequence.Indices.Element == Self.SubSequence.Indices.Index, Self.SubSequence.Indices.Index == Self.SubSequence.Indices.Indices.Element, Self.SubSequence.Indices.Indices.Element == Self.SubSequence.Indices.Indices.Index> to <Self : Sequence, Self.Element == Self.SubSequence.Element, Self.Index : Comparable, Self.Index == Self.Indices.Element, Self.Indices : Collection, Self.Indices == Self.Indices.SubSequence, Self.SubSequence : Collection, Self.SubSequence == Self.SubSequence.SubSequence, Self.Indices.Element == Self.Indices.Index, Self.Indices.Index == Self.SubSequence.Index, Self.SubSequence.Index == Self.Indices.Indices.Element, Self.Indices.Indices.Element == Self.Indices.Indices.Index, Self.Indices.Indices.Index == Self.SubSequence.Indices.Element, Self.SubSequence.Indices.Element == Self.SubSequence.Indices.Index, Self.SubSequence.Indices.Index == Self.SubSequence.Indices.Indices.Element, Self.SubSequence.Indices.Indices.Element == Self.SubSequence.Indices.Indices.Index>
61+
Protocol Sequence has generic signature change from <Self.Element == Self.Iterator.Element, Self.Iterator : IteratorProtocol, Self.SubSequence : Sequence, Self.SubSequence == Self.SubSequence.SubSequence, Self.Iterator.Element == Self.SubSequence.Element, Self.SubSequence.Element == Self.SubSequence.Iterator.Element> to <Self.Element == Self.Iterator.Element, Self.Iterator : IteratorProtocol>
62+
Protocol _SequenceWrapper has been removed
63+
Struct AnySequence has removed conformance to Sequence
64+
Struct Iterator has been removed
65+
Struct LazySequence has removed conformance to _SequenceWrapper
66+
Struct ReversedCollection has removed conformance to LazyCollectionProtocol
67+
Struct Slice has removed conformance to LazyCollectionProtocol
68+
TypeAlias AnyIterator.SubSequence has been removed
69+
TypeAlias AnySequence.SubSequence has been removed
70+
TypeAlias EmptyCollection.Iterator.SubSequence has been removed
71+
TypeAlias EnumeratedSequence.Iterator.SubSequence has been removed
72+
TypeAlias EnumeratedSequence.SubSequence has been removed
73+
TypeAlias FlattenSequence.Iterator.SubSequence has been removed
74+
TypeAlias FlattenSequence.SubSequence has generic signature change from <Base where Base : Sequence, Base.Element : Sequence> to <Base where Base : BidirectionalCollection, Base.Element : BidirectionalCollection>
75+
TypeAlias FlattenSequence.SubSequence has underlying type change from AnySequence<Base.Element.Element> to Slice<FlattenSequence<Base>>
76+
TypeAlias IteratorSequence.SubSequence has been removed
77+
TypeAlias JoinedSequence.SubSequence has been removed
78+
TypeAlias LazyDropWhileSequence.SubSequence has generic signature change from <Base where Base : Sequence> to <Base where Base : Collection>
79+
TypeAlias LazyDropWhileSequence.SubSequence has underlying type change from AnySequence<LazyDropWhileSequence<Base>.Element> to Slice<LazyDropWhileCollection<Base>>
80+
TypeAlias LazyFilterSequence.Iterator.SubSequence has been removed
81+
TypeAlias LazyFilterSequence.SubSequence has generic signature change from <Base where Base : Sequence> to <Base where Base : Collection>
82+
TypeAlias LazyFilterSequence.SubSequence has underlying type change from AnySequence<Base.Element> to LazyFilterCollection<Base.SubSequence>
83+
TypeAlias LazyMapSequence.Iterator.SubSequence has been removed
84+
TypeAlias LazyMapSequence.SubSequence has generic signature change from <Base, Element where Base : Sequence> to <Base, Element where Base : Collection>
85+
TypeAlias LazyMapSequence.SubSequence has underlying type change from AnySequence<Element> to LazyMapCollection<Base.SubSequence, Element>
86+
TypeAlias LazyPrefixWhileSequence.Iterator.SubSequence has been removed
87+
TypeAlias LazyPrefixWhileSequence.SubSequence has generic signature change from <Base where Base : Sequence> to <Base where Base : Collection>
88+
TypeAlias LazyPrefixWhileSequence.SubSequence has underlying type change from AnySequence<LazyPrefixWhileSequence<Base>.Element> to Slice<LazyPrefixWhileCollection<Base>>
89+
TypeAlias LazySequence.Base has been removed
90+
TypeAlias LazySequence.SubSequence has generic signature change from <Base where Base : Sequence> to <Base where Base : Collection>
91+
TypeAlias LazySequence.SubSequence has underlying type change from Base.SubSequence to Slice<LazySequence<Base>>
92+
TypeAlias PartialRangeFrom.SubSequence has been removed
93+
TypeAlias ReversedCollection.Iterator.SubSequence has been removed
94+
TypeAlias StrideThrough.SubSequence has been removed
95+
TypeAlias StrideTo.SubSequence has been removed
96+
TypeAlias UnfoldSequence.SubSequence has been removed
97+
TypeAlias UnsafeRawBufferPointer.Iterator.SubSequence has been removed
98+
TypeAlias Zip2Sequence.SubSequence has been removed
99+
Var Collection.lazy has been removed

0 commit comments

Comments
 (0)