@@ -550,11 +550,7 @@ internal final class _SequenceBox<S: Sequence>: _AnySequenceBox<S.Element> {
550550 internal override func _map< T> (
551551 _ transform: ( Element ) throws -> T
552552 ) throws -> [ T ] {
553- #if $TypedThrows
554553 try _base. map ( transform)
555- #else
556- try _base. __rethrows_map ( transform)
557- #endif
558554 }
559555 @inlinable
560556 internal override func _filter(
@@ -650,11 +646,7 @@ internal final class _CollectionBox<S: Collection>: _AnyCollectionBox<S.Element>
650646 internal override func _map< T> (
651647 _ transform: ( Element ) throws -> T
652648 ) throws -> [ T ] {
653- #if $TypedThrows
654649 try _base. map ( transform)
655- #else
656- try _base. __rethrows_map ( transform)
657- #endif
658650 }
659651 @inlinable
660652 internal override func _filter(
@@ -852,11 +844,7 @@ internal final class _BidirectionalCollectionBox<S: BidirectionalCollection>
852844 internal override func _map< T> (
853845 _ transform: ( Element ) throws -> T
854846 ) throws -> [ T ] {
855- #if $TypedThrows
856847 try _base. map ( transform)
857- #else
858- try _base. __rethrows_map ( transform)
859- #endif
860848 }
861849 @inlinable
862850 internal override func _filter(
@@ -1072,11 +1060,7 @@ internal final class _RandomAccessCollectionBox<S: RandomAccessCollection>
10721060 internal override func _map< T> (
10731061 _ transform: ( Element ) throws -> T
10741062 ) throws -> [ T ] {
1075- #if $TypedThrows
10761063 try _base. map ( transform)
1077- #else
1078- try _base. __rethrows_map ( transform)
1079- #endif
10801064 }
10811065 @inlinable
10821066 internal override func _filter(
@@ -1380,6 +1364,7 @@ extension AnySequence {
13801364 // ABI-only entrypoint for the rethrows version of map, which has been
13811365 // superseded by the typed-throws version. Expressed as "throws", which is
13821366 // ABI-compatible with "rethrows".
1367+ @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
13831368 @usableFromInline
13841369 @_silgen_name ( " $ss11AnySequenceV3mapySayqd__Gqd__xKXEKlF " )
13851370 func __rethrows_map< T> (
@@ -1483,6 +1468,7 @@ extension AnyCollection {
14831468 // ABI-only entrypoint for the rethrows version of map, which has been
14841469 // superseded by the typed-throws version. Expressed as "throws", which is
14851470 // ABI-compatible with "rethrows".
1471+ @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
14861472 @usableFromInline
14871473 @_silgen_name ( " $ss13AnyCollectionV3mapySayqd__Gqd__xKXEKlF " )
14881474 func __rethrows_map< T> (
@@ -1592,6 +1578,7 @@ extension AnyBidirectionalCollection {
15921578 // ABI-only entrypoint for the rethrows version of map, which has been
15931579 // superseded by the typed-throws version. Expressed as "throws", which is
15941580 // ABI-compatible with "rethrows".
1581+ @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
15951582 @usableFromInline
15961583 @_silgen_name ( " $ss26AnyBidirectionalCollectionV3mapySayqd__Gqd__xKXEKlF " )
15971584 func __rethrows_map< T> (
@@ -1703,6 +1690,7 @@ extension AnyRandomAccessCollection {
17031690 // ABI-only entrypoint for the rethrows version of map, which has been
17041691 // superseded by the typed-throws version. Expressed as "throws", which is
17051692 // ABI-compatible with "rethrows".
1693+ @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
17061694 @usableFromInline
17071695 @_silgen_name ( " $ss25AnyRandomAccessCollectionV3mapySayqd__Gqd__xKXEKlF " )
17081696 func __rethrows_map< T> (
0 commit comments