Commit 989b257
committed
Auto merge of #49053 - alexcrichton:fail-if-build-cargo-twice, r=Mark-Simulacrum
rustbuild: Fail the build if we build Cargo twice
This commit updates the `ToolBuild` step to stream Cargo's JSON messages, parse
them, and record all libraries built. If we build anything twice (aka Cargo)
it'll most likely happen due to dependencies being recompiled which is caught by
this check.File tree
8 files changed
+349
-240
lines changed- src
- bootstrap
- librustc
- tools
- unstable-book-gen
8 files changed
+349
-240
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
996 | 997 | | |
997 | 998 | | |
998 | 999 | | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | 1000 | | |
1018 | 1001 | | |
1019 | 1002 | | |
| |||
1028 | 1011 | | |
1029 | 1012 | | |
1030 | 1013 | | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1040 | 1018 | | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
| 1019 | + | |
1050 | 1020 | | |
1051 | 1021 | | |
1052 | 1022 | | |
1053 | 1023 | | |
1054 | 1024 | | |
1055 | | - | |
| 1025 | + | |
1056 | 1026 | | |
1057 | 1027 | | |
1058 | | - | |
| 1028 | + | |
1059 | 1029 | | |
1060 | 1030 | | |
1061 | 1031 | | |
1062 | 1032 | | |
1063 | | - | |
| 1033 | + | |
1064 | 1034 | | |
1065 | 1035 | | |
1066 | 1036 | | |
1067 | 1037 | | |
1068 | 1038 | | |
1069 | 1039 | | |
1070 | | - | |
| 1040 | + | |
1071 | 1041 | | |
1072 | 1042 | | |
1073 | 1043 | | |
| |||
1088 | 1058 | | |
1089 | 1059 | | |
1090 | 1060 | | |
1091 | | - | |
| 1061 | + | |
1092 | 1062 | | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | | - | |
| 1063 | + | |
| 1064 | + | |
1100 | 1065 | | |
1101 | 1066 | | |
1102 | 1067 | | |
| |||
1167 | 1132 | | |
1168 | 1133 | | |
1169 | 1134 | | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
257 | 261 | | |
258 | 262 | | |
259 | 263 | | |
| |||
353 | 357 | | |
354 | 358 | | |
355 | 359 | | |
| 360 | + | |
356 | 361 | | |
357 | 362 | | |
358 | 363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
121 | 194 | | |
122 | 195 | | |
123 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
- CONTRIBUTING.md+4
- Cargo.toml+1-1
- src/bin/cli.rs+1-1
- src/bin/commands/install.rs+2-2
- src/bin/commands/rustc.rs+6-1
- src/bin/commands/rustdoc.rs+6-1
- src/cargo/core/dependency.rs+1
- src/cargo/core/features.rs+2
- src/cargo/core/resolver/conflict_cache.rs+96
- src/cargo/core/resolver/mod.rs+105-61
- src/cargo/lib.rs-2
- src/cargo/ops/cargo_clean.rs+5-1
- src/cargo/ops/cargo_compile.rs+19-13
- src/cargo/ops/cargo_run.rs+1-1
- src/cargo/ops/cargo_rustc/context/mod.rs+39-289
- src/cargo/ops/cargo_rustc/context/unit_dependencies.rs+301
- src/cargo/ops/cargo_rustc/custom_build.rs+8-8
- src/cargo/ops/cargo_rustc/fingerprint.rs+1-1
- src/cargo/ops/cargo_rustc/job_queue.rs+1-1
- src/cargo/ops/cargo_rustc/mod.rs+5-4
- src/cargo/ops/cargo_rustc/output_depinfo.rs+1-1
- src/cargo/ops/resolve.rs+27-7
- src/cargo/sources/registry/index.rs+5-2
- src/cargo/sources/registry/mod.rs+3-2
- src/cargo/util/toml/targets.rs+22
- src/doc/src/reference/manifest.md+1-1
- src/doc/src/reference/specifying-dependencies.md+5-4
- tests/testsuite/bad_config.rs+1-1
- tests/testsuite/build.rs+131-15
- tests/testsuite/check.rs+24-1
- tests/testsuite/install.rs+15-6
- tests/testsuite/resolve.rs+196-2
- tests/testsuite/rustc.rs+64
- tests/testsuite/update.rs+44
Submodule rls updated from 974c515 to f5a0c91
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments