This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 17716be
committed
compiler: die immediately instead of handling unknown target codegen
We cannot produce anything useful if asked to compile unknown targets.
We should handle the error immediately at the point of discovery instead
of propagating it upward, and preferably in the simplest way: Die.
This allows cleaning up our "error-handling" spread across 5 crates.1 parent 8c04e39 commit 17716be
File tree
7 files changed
+7
-63
lines changed- compiler
- rustc_const_eval/src
- interpret
- rustc_middle/src
- mir/interpret
- ty
- rustc_passes/src
- rustc_target/src/callconv
- rustc_ty_utils/src
7 files changed
+7
-63
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
936 | 935 | | |
937 | 936 | | |
938 | 937 | | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | 938 | | |
943 | 939 | | |
944 | 940 | | |
| |||
953 | 949 | | |
954 | 950 | | |
955 | 951 | | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | 952 | | |
963 | 953 | | |
964 | 954 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 109 | | |
113 | 110 | | |
114 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 219 | | |
224 | 220 | | |
225 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
1275 | 1274 | | |
1276 | 1275 | | |
1277 | 1276 | | |
1278 | | - | |
1279 | | - | |
1280 | | - | |
1281 | 1277 | | |
1282 | 1278 | | |
1283 | 1279 | | |
1284 | 1280 | | |
1285 | 1281 | | |
1286 | 1282 | | |
1287 | | - | |
1288 | | - | |
1289 | | - | |
1290 | 1283 | | |
1291 | 1284 | | |
1292 | 1285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 49 | | |
59 | 50 | | |
60 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
623 | 622 | | |
624 | 623 | | |
625 | 624 | | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | 625 | | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
| 626 | + | |
639 | 627 | | |
640 | 628 | | |
641 | 629 | | |
| |||
644 | 632 | | |
645 | 633 | | |
646 | 634 | | |
647 | | - | |
| 635 | + | |
648 | 636 | | |
649 | 637 | | |
650 | 638 | | |
| |||
719 | 707 | | |
720 | 708 | | |
721 | 709 | | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
| 710 | + | |
728 | 711 | | |
729 | | - | |
730 | | - | |
731 | 712 | | |
732 | 713 | | |
733 | 714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
653 | | - | |
| 653 | + | |
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | | - | |
| 665 | + | |
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
| |||
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
685 | | - | |
| 685 | + | |
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
726 | | - | |
727 | | - | |
728 | | - | |
| 726 | + | |
729 | 727 | | |
730 | | - | |
731 | | - | |
732 | 728 | | |
733 | 729 | | |
734 | 730 | | |
| |||
0 commit comments