Commit 5db3685
committed
[Existential collections] Switch internal _map rethrows methods to throws
These class methods are internal, but because they are overridden and are
part of a `@usableFromInline`, `@_fixed_layout` class, we they can't be
moved over to typed throws without breaking ABI. However, they are
only ever called from typed-throws functions, which already need a
do...catch dance to downcast the error itself. Make them `throws`
instead, which is ABI-compatible, but eliminates the need for
do...catch hackery in the function itself.1 parent 1892396 commit 5db3685
1 file changed
+9
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
| 528 | + | |
| 529 | + | |
535 | 530 | | |
536 | 531 | | |
537 | 532 | | |
| |||
623 | 618 | | |
624 | 619 | | |
625 | 620 | | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
| 621 | + | |
| 622 | + | |
633 | 623 | | |
634 | 624 | | |
635 | 625 | | |
| |||
823 | 813 | | |
824 | 814 | | |
825 | 815 | | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
| 816 | + | |
| 817 | + | |
833 | 818 | | |
834 | 819 | | |
835 | 820 | | |
| |||
1041 | 1026 | | |
1042 | 1027 | | |
1043 | 1028 | | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
| 1029 | + | |
| 1030 | + | |
1051 | 1031 | | |
1052 | 1032 | | |
1053 | 1033 | | |
| |||
0 commit comments