Commit 1292915
committed
Auto merge of #7575 - orium:fix-unused-warnings, r=alexcrichton
Fix unused configuration key warning for a few keys under `build`.
Recently cargo started to warn about configuration keys that he doesn't know about. However, there are a few keys under `build` that were used in a dynamic way (`rustc`, `rustdoc`, and `rustc_wrapper`) by `Config::maybe_get_tool()`.
Since these keys are not known to exist when `Config` is deserialized, cargo was emitting unused warnings.
This commit makes those config keys explicit. Note that by doing so there is a small breaking change: before it was possible to have `build.rustc_wrapper` in the configuration file (even though the documented key uses kebak-case), and now that key will be ignored. (Good thing we have warnings for unrecognized keys!)2 files changed
+28
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
882 | 860 | | |
883 | | - | |
884 | | - | |
885 | | - | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
886 | 873 | | |
887 | | - | |
888 | 874 | | |
889 | | - | |
| 875 | + | |
| 876 | + | |
890 | 877 | | |
891 | 878 | | |
892 | 879 | | |
893 | 880 | | |
894 | | - | |
895 | | - | |
896 | | - | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
897 | 884 | | |
898 | 885 | | |
899 | 886 | | |
| |||
1473 | 1460 | | |
1474 | 1461 | | |
1475 | 1462 | | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
1476 | 1466 | | |
1477 | 1467 | | |
1478 | 1468 | | |
| |||
0 commit comments