Commit ecbba47
committed
Move metadata generation.
It's currently done within `start_codegen`, which is called from
`codegen_and_build_linker`, and it gets included in the codegen timing
section. All this is surprising, because it's not part of codegen.
This commit moves it into `run_compiler`, just before the call to
`codegen_and_build_linker`. This is a more sensible place for it.
The commit also adds some extra non-obvious information about the
`has_errors_or_delayed_bugs` check, which I learned when I tried
moving metadata generation earlier.
Likewise, the nearby `rustc_delayed_bug_from_inside_query` code is also
moved, because (a) it's not part of codegen, and (b) it needs to be
nearby.1 parent 3776358 commit ecbba47
File tree
5 files changed
+35
-23
lines changed- compiler
- rustc_driver_impl/src
- rustc_interface/src
- rustc_metadata/src/rmeta
- tests/ui-fulldeps
5 files changed
+35
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
387 | 411 | | |
388 | 412 | | |
389 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
1196 | 1195 | | |
1197 | 1196 | | |
1198 | 1197 | | |
1199 | | - | |
| 1198 | + | |
1200 | 1199 | | |
1201 | 1200 | | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
1209 | 1201 | | |
1210 | 1202 | | |
1211 | 1203 | | |
1212 | 1204 | | |
1213 | 1205 | | |
1214 | 1206 | | |
1215 | | - | |
1216 | | - | |
1217 | | - | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
1222 | 1207 | | |
1223 | 1208 | | |
1224 | | - | |
1225 | | - | |
1226 | 1209 | | |
1227 | 1210 | | |
1228 | 1211 | | |
| |||
1233 | 1216 | | |
1234 | 1217 | | |
1235 | 1218 | | |
1236 | | - | |
| 1219 | + | |
1237 | 1220 | | |
1238 | 1221 | | |
1239 | 1222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2274 | 2274 | | |
2275 | 2275 | | |
2276 | 2276 | | |
| 2277 | + | |
| 2278 | + | |
2277 | 2279 | | |
2278 | 2280 | | |
2279 | 2281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
0 commit comments