@@ -550,11 +550,7 @@ internal final class _SequenceBox<S: Sequence>: _AnySequenceBox<S.Element> {
550
550
internal override func _map< T> (
551
551
_ transform: ( Element ) throws -> T
552
552
) throws -> [ T ] {
553
- #if $TypedThrows
554
553
try _base. map ( transform)
555
- #else
556
- try _base. __rethrows_map ( transform)
557
- #endif
558
554
}
559
555
@inlinable
560
556
internal override func _filter(
@@ -650,11 +646,7 @@ internal final class _CollectionBox<S: Collection>: _AnyCollectionBox<S.Element>
650
646
internal override func _map< T> (
651
647
_ transform: ( Element ) throws -> T
652
648
) throws -> [ T ] {
653
- #if $TypedThrows
654
649
try _base. map ( transform)
655
- #else
656
- try _base. __rethrows_map ( transform)
657
- #endif
658
650
}
659
651
@inlinable
660
652
internal override func _filter(
@@ -852,11 +844,7 @@ internal final class _BidirectionalCollectionBox<S: BidirectionalCollection>
852
844
internal override func _map< T> (
853
845
_ transform: ( Element ) throws -> T
854
846
) throws -> [ T ] {
855
- #if $TypedThrows
856
847
try _base. map ( transform)
857
- #else
858
- try _base. __rethrows_map ( transform)
859
- #endif
860
848
}
861
849
@inlinable
862
850
internal override func _filter(
@@ -1072,11 +1060,7 @@ internal final class _RandomAccessCollectionBox<S: RandomAccessCollection>
1072
1060
internal override func _map< T> (
1073
1061
_ transform: ( Element ) throws -> T
1074
1062
) throws -> [ T ] {
1075
- #if $TypedThrows
1076
1063
try _base. map ( transform)
1077
- #else
1078
- try _base. __rethrows_map ( transform)
1079
- #endif
1080
1064
}
1081
1065
@inlinable
1082
1066
internal override func _filter(
@@ -1380,6 +1364,7 @@ extension AnySequence {
1380
1364
// ABI-only entrypoint for the rethrows version of map, which has been
1381
1365
// superseded by the typed-throws version. Expressed as "throws", which is
1382
1366
// ABI-compatible with "rethrows".
1367
+ @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
1383
1368
@usableFromInline
1384
1369
@_silgen_name ( " $ss11AnySequenceV3mapySayqd__Gqd__xKXEKlF " )
1385
1370
func __rethrows_map< T> (
@@ -1483,6 +1468,7 @@ extension AnyCollection {
1483
1468
// ABI-only entrypoint for the rethrows version of map, which has been
1484
1469
// superseded by the typed-throws version. Expressed as "throws", which is
1485
1470
// ABI-compatible with "rethrows".
1471
+ @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
1486
1472
@usableFromInline
1487
1473
@_silgen_name ( " $ss13AnyCollectionV3mapySayqd__Gqd__xKXEKlF " )
1488
1474
func __rethrows_map< T> (
@@ -1592,6 +1578,7 @@ extension AnyBidirectionalCollection {
1592
1578
// ABI-only entrypoint for the rethrows version of map, which has been
1593
1579
// superseded by the typed-throws version. Expressed as "throws", which is
1594
1580
// ABI-compatible with "rethrows".
1581
+ @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
1595
1582
@usableFromInline
1596
1583
@_silgen_name ( " $ss26AnyBidirectionalCollectionV3mapySayqd__Gqd__xKXEKlF " )
1597
1584
func __rethrows_map< T> (
@@ -1703,6 +1690,7 @@ extension AnyRandomAccessCollection {
1703
1690
// ABI-only entrypoint for the rethrows version of map, which has been
1704
1691
// superseded by the typed-throws version. Expressed as "throws", which is
1705
1692
// ABI-compatible with "rethrows".
1693
+ @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
1706
1694
@usableFromInline
1707
1695
@_silgen_name ( " $ss25AnyRandomAccessCollectionV3mapySayqd__Gqd__xKXEKlF " )
1708
1696
func __rethrows_map< T> (
0 commit comments