Commit 6878c43
committed
Auto merge of #10566 - Urgau:check-cfg-improvements, r=ehuss
Improve support of condition compilation checking
This PR is a series of improvements to the check-cfg implementation.
### What does this PR try to resolve?
This PR resolve the concern expressed in #10486 (comment) that is:
* Fixing the tests on Windows: e8aa51d
* Merging all the -Z flags under -Zcheck-cfg: 969e282
* Moving of all of the check-cfg tests into a separate module: c18b442
* And removing of an unused parameter: 068bdf4
### How should we test and review this PR?
This PR should be reviewed commit by commit and tested with the automated tests or examples.
### Additional information
I decided to use a custom macro to make the test functional under Windows, the macro generate a contains line with the correct escaping depending on the platform (windows or not windows).File tree
10 files changed
+530
-626
lines changed- src
- cargo/core
- compiler
- context
- doc/src/reference
- tests/testsuite
10 files changed
+530
-626
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
| 648 | + | |
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| |||
966 | 966 | | |
967 | 967 | | |
968 | 968 | | |
969 | | - | |
| 969 | + | |
970 | 970 | | |
971 | 971 | | |
972 | 972 | | |
| |||
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
1045 | | - | |
| 1045 | + | |
1046 | 1046 | | |
1047 | 1047 | | |
1048 | 1048 | | |
| |||
1055 | 1055 | | |
1056 | 1056 | | |
1057 | 1057 | | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
| 1058 | + | |
| 1059 | + | |
1061 | 1060 | | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
1067 | 1075 | | |
1068 | | - | |
1069 | | - | |
1070 | | - | |
1071 | | - | |
1072 | | - | |
1073 | | - | |
1074 | | - | |
1075 | | - | |
1076 | | - | |
| 1076 | + | |
| 1077 | + | |
1077 | 1078 | | |
1078 | | - | |
1079 | 1079 | | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1083 | 1084 | | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
1088 | 1089 | | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
1092 | 1093 | | |
1093 | | - | |
1094 | | - | |
1095 | 1094 | | |
1096 | 1095 | | |
1097 | 1096 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | | - | |
645 | | - | |
646 | | - | |
| 644 | + | |
647 | 645 | | |
648 | 646 | | |
649 | 647 | | |
| |||
785 | 783 | | |
786 | 784 | | |
787 | 785 | | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
788 | 807 | | |
789 | 808 | | |
790 | 809 | | |
| |||
842 | 861 | | |
843 | 862 | | |
844 | 863 | | |
845 | | - | |
846 | | - | |
847 | | - | |
| 864 | + | |
848 | 865 | | |
849 | 866 | | |
850 | 867 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1188 | 1188 | | |
1189 | 1189 | | |
1190 | 1190 | | |
1191 | | - | |
| 1191 | + | |
1192 | 1192 | | |
1193 | 1193 | | |
| 1194 | + | |
1194 | 1195 | | |
1195 | | - | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
| 1196 | + | |
| 1197 | + | |
1208 | 1198 | | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
1216 | | - | |
1217 | | - | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
1221 | 1204 | | |
1222 | | - | |
1223 | | - | |
1224 | | - | |
1225 | 1205 | | |
1226 | 1206 | | |
1227 | 1207 | | |
1228 | | - | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
1229 | 1212 | | |
1230 | 1213 | | |
1231 | 1214 | | |
| |||
0 commit comments