split up rustc_session - #160924
Conversation
|
This PR changes rustc_public cc @oli-obk, @celinval, @ouz-a, @makai410 These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
|
r? @mu001999 rustbot has assigned @mu001999. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
split up `rustc_session`
This comment has been minimized.
This comment has been minimized.
|
Happy to review this, should have time |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (3dcaed8): comparison URL. Overall result: no relevant changes - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)Results (secondary 0.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 0.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 463.191s -> 456.228s (-1.50%) |
Followup on #160336 cc @JonathanBrouwer (feel free to review if you want)
The first commit splits out the
cstoremodule fromrustc_sessioninto its own crate.rustc_sessionactually never used it anywhere internally, and there are also several crates that only depend onrustc_sessionfor it. So it is a natural candidate to split off.The second commit is similar;
rustc_hir::definitionsis moved torustc_hir_id; it is used nowhere inrustc_hir, except to implement an inherent method:which is used (once) in rustc_middle, so the items in
rustc_hir::definitionsand this conversion function could be in many places.rustc_hir_idis the earliest and the easiest, so that's what I went with.Together these allow
rustc_crate_store,rustc_hirandrustc_sessionto compile in parallel.Current graph:
Graph after this pr: