Skip to content

Commit 94260a9

Browse files
committed
Confess my (current) source and ABI stability sins
1 parent b52f807 commit 94260a9

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11

22
/* Generic Signature Changes */
3+
Constructor _ExpressibleByStringInterpolation.init(stringInterpolation:) has generic signature change from <τ_0_0 where τ_0_0 : _ExpressibleByStringInterpolation> to <τ_0_0 where τ_0_0 : ExpressibleByStringInterpolation>
4+
Protocol StringProtocol has generic signature change from <τ_0_0 : BidirectionalCollection, τ_0_0 : Comparable, τ_0_0 : ExpressibleByStringLiteral, τ_0_0 : Hashable, τ_0_0 : LosslessStringConvertible, τ_0_0 : TextOutputStream, τ_0_0 : TextOutputStreamable, τ_0_0.Element == Character, τ_0_0.SubSequence : StringProtocol, τ_0_0.UTF16View : BidirectionalCollection, τ_0_0.UTF8View : Collection, τ_0_0.UnicodeScalarView : BidirectionalCollection, τ_0_0.UTF16View.Element == UInt16, τ_0_0.UTF8View.Element == UInt8, τ_0_0.UnicodeScalarView.Element == Unicode.Scalar> to <τ_0_0 : BidirectionalCollection, τ_0_0 : Comparable, τ_0_0 : ExpressibleByStringInterpolation, τ_0_0 : Hashable, τ_0_0 : LosslessStringConvertible, τ_0_0 : TextOutputStream, τ_0_0 : TextOutputStreamable, τ_0_0.Element == Character, τ_0_0.StringInterpolation == DefaultStringInterpolation, τ_0_0.SubSequence : StringProtocol, τ_0_0.UTF16View : BidirectionalCollection, τ_0_0.UTF8View : Collection, τ_0_0.UnicodeScalarView : BidirectionalCollection, τ_0_0.UTF16View.Element == UInt16, τ_0_0.UTF8View.Element == UInt8, τ_0_0.UnicodeScalarView.Element == Unicode.Scalar>
5+
Protocol _ExpressibleByStringInterpolation has generic signature change from to <τ_0_0 : ExpressibleByStringLiteral, τ_0_0.StringInterpolation : StringInterpolationProtocol, τ_0_0.StringLiteralType == τ_0_0.StringInterpolation.StringLiteralType>
36

47
/* RawRepresentable Changes */
58

69
/* Removed Decls */
710
Constructor AnyHashable.init(_box:) has been removed
811
Constructor AnyHashable.init(_usingDefaultRepresentationOf:) has been removed
912
Constructor ManagedBufferPointer.init(_:_:_:) has been removed
13+
Constructor String.init(stringInterpolationSegment:) has been removed
1014
Constructor Zip2Sequence.init(_sequence1:_sequence2:) has been removed
1115
Constructor _BridgeStorage.init(native:bits:) has been removed
1216
Constructor _BridgeableMetatype.init(value:) has been removed
17+
Constructor _ExpressibleByStringInterpolation.init(stringInterpolationSegment:) has been removed
1318
Func AnyHashable._downCastConditional(into:) has been removed
1419
Func Collection.prefix(through:) has been removed
1520
Func Collection.prefix(upTo:) has been removed
@@ -32,6 +37,8 @@ Func _getEnumCaseName(_:) has been removed
3237
Func _opaqueSummary(_:) has been removed
3338
Func _stdlib_NSDictionary_allKeys(_:) has been removed
3439
Func _stdlib_NSSet_allObjects(_:) has been removed
40+
Func _toStringReadOnlyPrintable(_:) has been removed
41+
Func _toStringReadOnlyStreamable(_:) has been removed
3542
Protocol _HeapBufferHeader_ has been removed
3643
Struct _ConcreteHashableBox has been removed
3744
Struct _HeapBufferHeader has been removed
@@ -73,13 +80,16 @@ Var _RandomAccessCollectionBox._first has been removed
7380
Var _RandomAccessCollectionBox._last has been removed
7481
Var __SwiftDeferredNSArray._heapBufferBridged has been removed
7582
Var __SwiftDeferredNSArray._heapBufferBridgedPtr has been removed
76-
Var Hasher._core has declared type change from _BufferingHasher<_SipHash13Core> to _BufferingHasher<Hasher._Core>
7783

7884
/* Moved Decls */
7985

8086
/* Renamed Decls */
87+
Protocol _ExpressibleByStringInterpolation has been renamed to Protocol ExpressibleByStringInterpolation
8188

8289
/* Type Changes */
90+
Constructor String.init(stringInterpolation:) has parameter 0 type change from Array<String> to DefaultStringInterpolation
91+
Constructor _ExpressibleByStringInterpolation.init(stringInterpolation:) has parameter 0 type change from Array<τ_0_0> to τ_0_0.StringInterpolation
92+
Var Hasher._core has declared type change from _BufferingHasher<_SipHash13Core> to _BufferingHasher<Hasher._Core>
8393
Struct _BridgeableMetatype is now without @_fixed_layout
8494
Func __ContiguousArrayStorageBase._getNonVerbatimBridgingBuffer() is added to a non-resilient type
8595
Var _CocoaDictionary.Index._offset is added to a non-resilient type
@@ -90,3 +100,9 @@ Var _CocoaSet.Index._storage in a non-resilient type changes position from 1 to
90100
/* Decl Attribute changes */
91101

92102
/* Protocol Requirement Changes */
103+
Protocol ExpressibleByStringInterpolation has added inherited protocol ExpressibleByExtendedGraphemeClusterLiteral
104+
Protocol ExpressibleByStringInterpolation has added inherited protocol ExpressibleByStringLiteral
105+
Protocol ExpressibleByStringInterpolation has added inherited protocol ExpressibleByUnicodeScalarLiteral
106+
Protocol StringProtocol has added inherited protocol ExpressibleByStringInterpolation
107+
Struct String has removed conformance to _ExpressibleByStringInterpolation
108+
Func TextOutputStream._writeASCII(_:) has been added as a protocol requirement

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11

22
/* Generic Signature Changes */
3+
Protocol StringProtocol has generic signature change from <Self : BidirectionalCollection, Self : Comparable, Self : ExpressibleByStringLiteral, Self : Hashable, Self : LosslessStringConvertible, Self : TextOutputStream, Self : TextOutputStreamable, Self.Element == Character, Self.SubSequence : StringProtocol, Self.UTF16View : BidirectionalCollection, Self.UTF8View : Collection, Self.UnicodeScalarView : BidirectionalCollection, Self.UTF16View.Element == UInt16, Self.UTF8View.Element == UInt8, Self.UnicodeScalarView.Element == Unicode.Scalar> to <Self : BidirectionalCollection, Self : Comparable, Self : ExpressibleByStringInterpolation, Self : Hashable, Self : LosslessStringConvertible, Self : TextOutputStream, Self : TextOutputStreamable, Self.Element == Character, Self.StringInterpolation == DefaultStringInterpolation, Self.SubSequence : StringProtocol, Self.UTF16View : BidirectionalCollection, Self.UTF8View : Collection, Self.UnicodeScalarView : BidirectionalCollection, Self.UTF16View.Element == UInt16, Self.UTF8View.Element == UInt8, Self.UnicodeScalarView.Element == Unicode.Scalar>
34

45
/* RawRepresentable Changes */
56

67
/* Removed Decls */
8+
Constructor String.init(stringInterpolationSegment:) has been removed
79
Func Collection.prefix(through:) has been removed
810
Func Collection.prefix(upTo:) has been removed
911
Func Collection.suffix(from:) has been removed
@@ -13,6 +15,7 @@ Func Sequence.map(_:) has been removed
1315
Func _SequenceWrapper.filter(_:) has been removed
1416
Func _SequenceWrapper.forEach(_:) has been removed
1517
Func _SequenceWrapper.map(_:) has been removed
18+
TypeAlias ExpressibleByStringInterpolation has been removed (deprecated)
1619
Var AnyBidirectionalCollection.first has been removed
1720
Var AnyBidirectionalCollection.last has been removed
1821
Var AnyCollection.first has been removed
@@ -32,7 +35,9 @@ Var Set.first has been removed
3235
/* Renamed Decls */
3336

3437
/* Type Changes */
38+
Constructor String.init(stringInterpolation:) has parameter 0 type change from [String] to DefaultStringInterpolation
3539

3640
/* Decl Attribute changes */
3741

3842
/* Protocol Requirement Changes */
43+
Protocol StringProtocol has added inherited protocol ExpressibleByStringInterpolation

0 commit comments

Comments
 (0)