This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 249d475
authored
Rollup merge of rust-lang#123753 - Urgau:compiletest-trailing-directive, r=jieyouxu
compiletest: error when finding a trailing directive
This PR introduce a supplementary check that when checking for a compiletest directive, will also check that the next "word" after that directive is not also by itself a directive.
This is done to avoid situations like this `//@ only-linux only-x86_64` where one might think that both directives are being taken into account while in fact the second in a comment, and so was ignored, until now.
Related to rust-lang#123730
cc `@scottmcm`
r? `@jieyouxu`2 files changed
+52
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
| 938 | + | |
938 | 939 | | |
939 | 940 | | |
940 | | - | |
941 | 941 | | |
942 | | - | |
943 | | - | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
944 | 952 | | |
945 | 953 | | |
946 | 954 | | |
947 | 955 | | |
| 956 | + | |
948 | 957 | | |
949 | 958 | | |
950 | 959 | | |
| |||
1014 | 1023 | | |
1015 | 1024 | | |
1016 | 1025 | | |
1017 | | - | |
| 1026 | + | |
| 1027 | + | |
1018 | 1028 | | |
1019 | 1029 | | |
1020 | 1030 | | |
| |||
1028 | 1038 | | |
1029 | 1039 | | |
1030 | 1040 | | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1031 | 1056 | | |
1032 | 1057 | | |
1033 | 1058 | | |
| |||
1051 | 1076 | | |
1052 | 1077 | | |
1053 | 1078 | | |
1054 | | - | |
| 1079 | + | |
| 1080 | + | |
1055 | 1081 | | |
1056 | 1082 | | |
1057 | 1083 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
0 commit comments