Skip to content

Commit 294d043

Browse files
committed
[api-digester] Ritually confess our sins
(cherry picked from commit a681a3d)
1 parent 85ca621 commit 294d043

File tree

2 files changed

+55
-21
lines changed

2 files changed

+55
-21
lines changed

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

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ Func UnsafeBufferPointer.index(_:offsetBy:) has generic signature change from <E
264264
Func UnsafeBufferPointer.index(_:offsetBy:limitedBy:) has generic signature change from <Element> to <Element where Element : ~Copyable>
265265
Func UnsafeBufferPointer.index(after:) has generic signature change from <Element> to <Element where Element : ~Copyable>
266266
Func UnsafeBufferPointer.index(before:) has generic signature change from <Element> to <Element where Element : ~Copyable>
267-
Func UnsafeBufferPointer.withMemoryRebound(to:_:) has generic signature change from <Element, T, Result> to <Element, T, Result where T : ~Copyable, Result : ~Copyable>
268267
Func UnsafeMutableBufferPointer.allocate(capacity:) has generic signature change from <Element> to <Element where Element : ~Copyable>
269268
Func UnsafeMutableBufferPointer.deallocate() has generic signature change from <Element> to <Element where Element : ~Copyable>
270269
Func UnsafeMutableBufferPointer.distance(from:to:) has generic signature change from <Element> to <Element where Element : ~Copyable>
@@ -275,26 +274,22 @@ Func UnsafeMutableBufferPointer.index(_:offsetBy:limitedBy:) has generic signatu
275274
Func UnsafeMutableBufferPointer.index(after:) has generic signature change from <Element> to <Element where Element : ~Copyable>
276275
Func UnsafeMutableBufferPointer.index(before:) has generic signature change from <Element> to <Element where Element : ~Copyable>
277276
Func UnsafeMutableBufferPointer.swapAt(_:_:) has generic signature change from <Element> to <Element where Element : ~Copyable>
278-
Func UnsafeMutableBufferPointer.withMemoryRebound(to:_:) has generic signature change from <Element, T, Result> to <Element, T, Result where T : ~Copyable, Result : ~Copyable>
279277
Func UnsafeMutablePointer.allocate(capacity:) has generic signature change from <Pointee> to <Pointee where Pointee : ~Copyable>
280278
Func UnsafeMutablePointer.deallocate() has generic signature change from <Pointee> to <Pointee where Pointee : ~Copyable>
281279
Func UnsafeMutablePointer.deinitialize(count:) has generic signature change from <Pointee> to <Pointee where Pointee : ~Copyable>
282280
Func UnsafeMutablePointer.initialize(to:) has generic signature change from <Pointee> to <Pointee where Pointee : ~Copyable>
283281
Func UnsafeMutablePointer.initialize(to:) has parameter 0 changing from Default to Owned
284282
Func UnsafeMutablePointer.move() has generic signature change from <Pointee> to <Pointee where Pointee : ~Copyable>
285283
Func UnsafeMutablePointer.moveInitialize(from:count:) has generic signature change from <Pointee> to <Pointee where Pointee : ~Copyable>
286-
Func UnsafeMutablePointer.withMemoryRebound(to:capacity:_:) has generic signature change from <Pointee, T, Result> to <Pointee, T, Result where T : ~Copyable, Result : ~Copyable>
287284
Func UnsafeMutableRawBufferPointer.bindMemory(to:) has generic signature change from <T> to <T where T : ~Copyable>
288285
Func UnsafeMutableRawPointer.assumingMemoryBound(to:) has generic signature change from <T> to <T where T : ~Copyable>
289286
Func UnsafeMutableRawPointer.bindMemory(to:capacity:) has generic signature change from <T> to <T where T : ~Copyable>
290287
Func UnsafeMutableRawPointer.moveInitializeMemory(as:from:count:) has generic signature change from <T> to <T where T : ~Copyable>
291288
Func UnsafePointer.deallocate() has generic signature change from <Pointee> to <Pointee where Pointee : ~Copyable>
292-
Func UnsafePointer.withMemoryRebound(to:capacity:_:) has generic signature change from <Pointee, T, Result> to <Pointee, T, Result where T : ~Copyable, Result : ~Copyable>
293289
Func UnsafeRawBufferPointer.bindMemory(to:) has generic signature change from <T> to <T where T : ~Copyable>
294290
Func UnsafeRawPointer.assumingMemoryBound(to:) has generic signature change from <T> to <T where T : ~Copyable>
295291
Func UnsafeRawPointer.bindMemory(to:capacity:) has generic signature change from <T> to <T where T : ~Copyable>
296292
Func swap(_:_:) has generic signature change from <T> to <T where T : ~Copyable>
297-
Func withExtendedLifetime(_:_:) has generic signature change from <T, Result> to <T, Result where T : ~Copyable, Result : ~Copyable>
298293
Func withExtendedLifetime(_:_:) has parameter 0 changing from Default to Shared
299294
Func withUnsafeBytes(of:_:) has generic signature change from <T, Result> to <T, E, Result where E : Swift.Error, T : ~Copyable, Result : ~Copyable>
300295
Func withUnsafeBytes(of:_:) has parameter 0 changing from Default to Shared
@@ -318,3 +313,35 @@ TypeAlias UnsafePointer.Distance has generic signature change from <Pointee> to
318313
TypeAlias UnsafePointer.Pointee has generic signature change from <Pointee> to <Pointee where Pointee : ~Copyable>
319314
TypeAlias UnsafePointer.Stride has generic signature change from <Pointee> to <Pointee where Pointee : ~Copyable>
320315
Func FixedWidthInteger.&*(_:_:) has been added as a protocol requirement
316+
Accessor UnsafeBufferPointer.debugDescription.Get() has generic signature change from <Element> to <Element where Element : ~Copyable>
317+
Accessor UnsafeMutableBufferPointer.debugDescription.Get() has generic signature change from <Element> to <Element where Element : ~Copyable>
318+
Func ManagedBuffer.withUnsafeMutablePointerToElements(_:) has generic signature change from <Header, Element, R> to <Header, Element, E, R where E : Swift.Error, R : ~Copyable>
319+
Func ManagedBuffer.withUnsafeMutablePointerToElements(_:) is now without @rethrows
320+
Func ManagedBuffer.withUnsafeMutablePointerToHeader(_:) has generic signature change from <Header, Element, R> to <Header, Element, E, R where E : Swift.Error, R : ~Copyable>
321+
Func ManagedBuffer.withUnsafeMutablePointerToHeader(_:) is now without @rethrows
322+
Func ManagedBuffer.withUnsafeMutablePointers(_:) has generic signature change from <Header, Element, R> to <Header, Element, E, R where E : Swift.Error, R : ~Copyable>
323+
Func ManagedBuffer.withUnsafeMutablePointers(_:) is now without @rethrows
324+
Func ManagedBufferPointer.withUnsafeMutablePointerToElements(_:) has generic signature change from <Header, Element, R> to <Header, Element, E, R where E : Swift.Error, R : ~Copyable>
325+
Func ManagedBufferPointer.withUnsafeMutablePointerToElements(_:) is now without @rethrows
326+
Func ManagedBufferPointer.withUnsafeMutablePointerToHeader(_:) has generic signature change from <Header, Element, R> to <Header, Element, E, R where E : Swift.Error, R : ~Copyable>
327+
Func ManagedBufferPointer.withUnsafeMutablePointerToHeader(_:) is now without @rethrows
328+
Func ManagedBufferPointer.withUnsafeMutablePointers(_:) has generic signature change from <Header, Element, R> to <Header, Element, E, R where E : Swift.Error, R : ~Copyable>
329+
Func ManagedBufferPointer.withUnsafeMutablePointers(_:) is now without @rethrows
330+
Func Optional.flatMap(_:) has generic signature change from <Wrapped, U> to <Wrapped, E, U where E : Swift.Error, U : ~Copyable>
331+
Func Optional.flatMap(_:) is now without @rethrows
332+
Func Optional.map(_:) has generic signature change from <Wrapped, U> to <Wrapped, E, U where E : Swift.Error, U : ~Copyable>
333+
Func Optional.map(_:) is now without @rethrows
334+
Func Result.flatMap(_:) has generic signature change from <Success, Failure, NewSuccess where Failure : Swift.Error> to <Success, Failure, NewSuccess where Failure : Swift.Error, NewSuccess : ~Copyable>
335+
Func Result.flatMapError(_:) has self access kind changing from NonMutating to Consuming
336+
Func Result.map(_:) has generic signature change from <Success, Failure, NewSuccess where Failure : Swift.Error> to <Success, Failure, NewSuccess where Failure : Swift.Error, NewSuccess : ~Copyable>
337+
Func UnsafeBufferPointer.withMemoryRebound(to:_:) has generic signature change from <Element, T, Result> to <Element, T, E, Result where E : Swift.Error, T : ~Copyable, Result : ~Copyable>
338+
Func UnsafeBufferPointer.withMemoryRebound(to:_:) is now without @rethrows
339+
Func UnsafeMutableBufferPointer.withMemoryRebound(to:_:) has generic signature change from <Element, T, Result> to <Element, T, E, Result where E : Swift.Error, T : ~Copyable, Result : ~Copyable>
340+
Func UnsafeMutableBufferPointer.withMemoryRebound(to:_:) is now without @rethrows
341+
Func UnsafeMutablePointer.withMemoryRebound(to:capacity:_:) has generic signature change from <Pointee, T, Result> to <Pointee, T, E, Result where E : Swift.Error, T : ~Copyable, Result : ~Copyable>
342+
Func UnsafeMutablePointer.withMemoryRebound(to:capacity:_:) is now without @rethrows
343+
Func UnsafePointer.withMemoryRebound(to:capacity:_:) has generic signature change from <Pointee, T, Result> to <Pointee, T, E, Result where E : Swift.Error, T : ~Copyable, Result : ~Copyable>
344+
Func UnsafePointer.withMemoryRebound(to:capacity:_:) is now without @rethrows
345+
Func withExtendedLifetime(_:_:) has generic signature change from <T, Result> to <T, E, Result where E : Swift.Error, Result : ~Copyable>
346+
Func withExtendedLifetime(_:_:) has generic signature change from <T, Result> to <T, E, Result where E : Swift.Error, T : ~Copyable, Result : ~Copyable>
347+
Func withExtendedLifetime(_:_:) is now without @rethrows

test/api-digester/stability-stdlib-abi-without-asserts.test

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -556,12 +556,9 @@ Func ??(_:_:) has been removed
556556
Func ManagedBuffer.create(minimumCapacity:makingHeaderWith:) has generic signature change from <Header, Element> to <Header, Element where Element : ~Copyable>
557557
Func ManagedBuffer.create(minimumCapacity:makingHeaderWith:) has mangled name changing from 'static Swift.ManagedBuffer.create(minimumCapacity: Swift.Int, makingHeaderWith: (Swift.ManagedBuffer<A, B>) throws -> A) throws -> Swift.ManagedBuffer<A, B>' to 'static (extension in Swift):Swift.ManagedBuffer< where B: ~Swift.Copyable>.create(minimumCapacity: Swift.Int, makingHeaderWith: (Swift.ManagedBuffer<A, B>) throws -> A) throws -> Swift.ManagedBuffer<A, B>'
558558
Func ManagedBuffer.create(minimumCapacity:makingHeaderWith:) is now with @_preInverseGenerics
559-
Func ManagedBuffer.withUnsafeMutablePointerToElements(_:) has mangled name changing from 'Swift.ManagedBuffer.withUnsafeMutablePointerToElements<A>((Swift.UnsafeMutablePointer<B>) throws -> A1) throws -> A1' to '(extension in Swift):Swift.ManagedBuffer< where B: ~Swift.Copyable>.withUnsafeMutablePointerToElements<A>((Swift.UnsafeMutablePointer<B>) throws -> A1) throws -> A1'
560-
Func ManagedBuffer.withUnsafeMutablePointerToElements(_:) is now with @_preInverseGenerics
561-
Func ManagedBuffer.withUnsafeMutablePointerToHeader(_:) has mangled name changing from 'Swift.ManagedBuffer.withUnsafeMutablePointerToHeader<A>((Swift.UnsafeMutablePointer<A>) throws -> A1) throws -> A1' to '(extension in Swift):Swift.ManagedBuffer< where B: ~Swift.Copyable>.withUnsafeMutablePointerToHeader<A>((Swift.UnsafeMutablePointer<A>) throws -> A1) throws -> A1'
562-
Func ManagedBuffer.withUnsafeMutablePointerToHeader(_:) is now with @_preInverseGenerics
563-
Func ManagedBuffer.withUnsafeMutablePointers(_:) has mangled name changing from 'Swift.ManagedBuffer.withUnsafeMutablePointers<A>((Swift.UnsafeMutablePointer<A>, Swift.UnsafeMutablePointer<B>) throws -> A1) throws -> A1' to '(extension in Swift):Swift.ManagedBuffer< where B: ~Swift.Copyable>.withUnsafeMutablePointers<A>((Swift.UnsafeMutablePointer<A>, Swift.UnsafeMutablePointer<B>) throws -> A1) throws -> A1'
564-
Func ManagedBuffer.withUnsafeMutablePointers(_:) is now with @_preInverseGenerics
559+
Func ManagedBuffer.withUnsafeMutablePointerToElements(_:) has been removed
560+
Func ManagedBuffer.withUnsafeMutablePointerToHeader(_:) has been removed
561+
Func ManagedBuffer.withUnsafeMutablePointers(_:) has been removed
565562
Func ManagedBufferPointer._checkValidBufferClass(_:creating:) has generic signature change from <Header, Element> to <Header, Element where Element : ~Copyable>
566563
Func ManagedBufferPointer._checkValidBufferClass(_:creating:) has mangled name changing from 'static Swift.ManagedBufferPointer._checkValidBufferClass(_: Swift.AnyObject.Type, creating: Swift.Bool) -> ()' to 'static (extension in Swift):Swift.ManagedBufferPointer< where B: ~Swift.Copyable>._checkValidBufferClass(_: Swift.AnyObject.Type, creating: Swift.Bool) -> ()'
567564
Func ManagedBufferPointer._checkValidBufferClass(_:creating:) is now with @_preInverseGenerics
@@ -571,12 +568,9 @@ Func ManagedBufferPointer._internalInvariantValidBufferClass(_:creating:) is now
571568
Func ManagedBufferPointer.isUniqueReference() has generic signature change from <Header, Element> to <Header, Element where Element : ~Copyable>
572569
Func ManagedBufferPointer.isUniqueReference() has mangled name changing from 'Swift.ManagedBufferPointer.isUniqueReference() -> Swift.Bool' to '(extension in Swift):Swift.ManagedBufferPointer< where B: ~Swift.Copyable>.isUniqueReference() -> Swift.Bool'
573570
Func ManagedBufferPointer.isUniqueReference() is now with @_preInverseGenerics
574-
Func ManagedBufferPointer.withUnsafeMutablePointerToElements(_:) has mangled name changing from 'Swift.ManagedBufferPointer.withUnsafeMutablePointerToElements<A>((Swift.UnsafeMutablePointer<B>) throws -> A1) throws -> A1' to '(extension in Swift):Swift.ManagedBufferPointer< where B: ~Swift.Copyable>.withUnsafeMutablePointerToElements<A>((Swift.UnsafeMutablePointer<B>) throws -> A1) throws -> A1'
575-
Func ManagedBufferPointer.withUnsafeMutablePointerToElements(_:) is now with @_preInverseGenerics
576-
Func ManagedBufferPointer.withUnsafeMutablePointerToHeader(_:) has mangled name changing from 'Swift.ManagedBufferPointer.withUnsafeMutablePointerToHeader<A>((Swift.UnsafeMutablePointer<A>) throws -> A1) throws -> A1' to '(extension in Swift):Swift.ManagedBufferPointer< where B: ~Swift.Copyable>.withUnsafeMutablePointerToHeader<A>((Swift.UnsafeMutablePointer<A>) throws -> A1) throws -> A1'
577-
Func ManagedBufferPointer.withUnsafeMutablePointerToHeader(_:) is now with @_preInverseGenerics
578-
Func ManagedBufferPointer.withUnsafeMutablePointers(_:) has mangled name changing from 'Swift.ManagedBufferPointer.withUnsafeMutablePointers<A>((Swift.UnsafeMutablePointer<A>, Swift.UnsafeMutablePointer<B>) throws -> A1) throws -> A1' to '(extension in Swift):Swift.ManagedBufferPointer< where B: ~Swift.Copyable>.withUnsafeMutablePointers<A>((Swift.UnsafeMutablePointer<A>, Swift.UnsafeMutablePointer<B>) throws -> A1) throws -> A1'
579-
Func ManagedBufferPointer.withUnsafeMutablePointers(_:) is now with @_preInverseGenerics
571+
Func ManagedBufferPointer.withUnsafeMutablePointerToElements(_:) has been removed
572+
Func ManagedBufferPointer.withUnsafeMutablePointerToHeader(_:) has been removed
573+
Func ManagedBufferPointer.withUnsafeMutablePointers(_:) has been removed
580574
Func MemoryLayout.alignment(ofValue:) has generic signature change from <T> to <T where T : ~Copyable>
581575
Func MemoryLayout.alignment(ofValue:) has mangled name changing from 'static Swift.MemoryLayout.alignment(ofValue: A) -> Swift.Int' to 'static (extension in Swift):Swift.MemoryLayout< where A: ~Swift.Copyable>.alignment(ofValue: A) -> Swift.Int'
582576
Func MemoryLayout.alignment(ofValue:) has parameter 0 changing from Default to Shared
@@ -708,10 +702,6 @@ Func _fixLifetime(_:) is now with @_preInverseGenerics
708702
Func swap(_:_:) has generic signature change from <T> to <T where T : ~Copyable>
709703
Func swap(_:_:) has mangled name changing from 'Swift.swap<A>(inout A, inout A) -> ()' to 'Swift.swap<A where A: ~Swift.Copyable>(inout A, inout A) -> ()'
710704
Func swap(_:_:) is now with @_preInverseGenerics
711-
Func withExtendedLifetime(_:_:) has generic signature change from <T, Result> to <T, Result where T : ~Copyable, Result : ~Copyable>
712-
Func withExtendedLifetime(_:_:) has mangled name changing from 'Swift.withExtendedLifetime<A, B>(A, () throws -> B) throws -> B' to 'Swift.withExtendedLifetime<A, B where A: ~Swift.Copyable, B: ~Swift.Copyable>(A, () throws -> B) throws -> B'
713-
Func withExtendedLifetime(_:_:) has parameter 0 changing from Default to Shared
714-
Func withExtendedLifetime(_:_:) is now with @_preInverseGenerics
715705
Func withUnsafeBytes(of:_:) has been renamed to Func __abi_se0413_withUnsafeBytes(of:_:)
716706
Func withUnsafeBytes(of:_:) has mangled name changing from 'Swift.withUnsafeBytes<A, B>(of: A, _: (Swift.UnsafeRawBufferPointer) throws -> B) throws -> B' to 'Swift.__abi_se0413_withUnsafeBytes<A, B>(of: A, _: (Swift.UnsafeRawBufferPointer) throws -> B) throws -> B'
717707
Func withUnsafeBytes(of:_:) has mangled name changing from 'Swift.withUnsafeBytes<A, B>(of: inout A, _: (Swift.UnsafeRawBufferPointer) throws -> B) throws -> B' to 'Swift.__abi_se0413_withUnsafeBytes<A, B>(of: inout A, _: (Swift.UnsafeRawBufferPointer) throws -> B) throws -> B'
@@ -807,6 +797,23 @@ Var UnsafePointer._rawValue is now with @_preInverseGenerics
807797
Var UnsafePointer.hashValue has mangled name changing from 'Swift.UnsafePointer.hashValue : Swift.Int' to '(extension in Swift):Swift.UnsafePointer< where A: ~Swift.Copyable>.hashValue : Swift.Int'
808798
Var UnsafePointer.hashValue is now with @_preInverseGenerics
809799
Var UnsafePointer.pointee has been removed
800+
Accessor UnsafeBufferPointer.debugDescription.Get() has generic signature change from <Element> to <Element where Element : ~Copyable>
801+
Accessor UnsafeBufferPointer.debugDescription.Get() has mangled name changing from 'Swift.UnsafeBufferPointer.debugDescription.getter : Swift.String' to '(extension in Swift):Swift.UnsafeBufferPointer< where A: ~Swift.Copyable>.debugDescription.getter : Swift.String'
802+
Accessor UnsafeMutableBufferPointer.debugDescription.Get() has generic signature change from <Element> to <Element where Element : ~Copyable>
803+
Accessor UnsafeMutableBufferPointer.debugDescription.Get() has mangled name changing from 'Swift.UnsafeMutableBufferPointer.debugDescription.getter : Swift.String' to '(extension in Swift):Swift.UnsafeMutableBufferPointer< where A: ~Swift.Copyable>.debugDescription.getter : Swift.String'
804+
Constructor OpaquePointer.init(_:) has mangled name changing from 'Swift.OpaquePointer.init<A>(Swift.Optional<Swift.UnsafeMutablePointer<A>>) -> Swift.Optional<Swift.OpaquePointer>' to 'Swift.OpaquePointer.init<A where A: ~Swift.Copyable>(Swift.Optional<Swift.UnsafeMutablePointer<A>>) -> Swift.Optional<Swift.OpaquePointer>'
805+
Constructor OpaquePointer.init(_:) has mangled name changing from 'Swift.OpaquePointer.init<A>(Swift.UnsafeMutablePointer<A>) -> Swift.OpaquePointer' to 'Swift.OpaquePointer.init<A where A: ~Swift.Copyable>(Swift.UnsafeMutablePointer<A>) -> Swift.OpaquePointer'
806+
Func Optional.flatMap(_:) has been removed
807+
Func Optional.map(_:) has been removed
808+
Func Result.flatMap(_:) has been removed
809+
Func Result.flatMapError(_:) has been removed
810+
Func Result.map(_:) has been removed
811+
Func withExtendedLifetime(_:_:) has been removed
812+
Var UnsafeBufferPointer.debugDescription has mangled name changing from 'Swift.UnsafeBufferPointer.debugDescription : Swift.String' to '(extension in Swift):Swift.UnsafeBufferPointer< where A: ~Swift.Copyable>.debugDescription : Swift.String'
813+
Var UnsafeBufferPointer.debugDescription is now with @_preInverseGenerics
814+
Var UnsafeMutableBufferPointer.debugDescription has mangled name changing from 'Swift.UnsafeMutableBufferPointer.debugDescription : Swift.String' to '(extension in Swift):Swift.UnsafeMutableBufferPointer< where A: ~Swift.Copyable>.debugDescription : Swift.String'
815+
Var UnsafeMutableBufferPointer.debugDescription is now with @_preInverseGenerics
816+
810817
Func FixedWidthInteger.&*(_:_:) has been added as a protocol requirement
811818

812819
// *** DO NOT DISABLE OR XFAIL THIS TEST. *** (See comment above.)

0 commit comments

Comments
 (0)