Uh oh!
There was an error while loading. Please reload this page.
rustc_metadata: Privatize private code and remove dead code - #65170
Conversation
Ping from triage thank you |
There was a problem hiding this comment.
I don't like this.CrateLoader is an "immutable reference" to some fields in rustc_interface::Compiler plus the result of rustc_interface query crate_name().
(metadata_loader should also migrate from CStore to CrateLoader and it's also a kind of "immutable reference" to rustc_interface::Compiler.)CrateLoader::new is called from multiple places right now, but it should always return the same thing.
I'll probably try to add a rustc_interface query for it.
I want to split the crate locator configuration (locator::Context) into three parts - immutable per-session configuration, immutable per-search configuration, and mutable output / in-progress state.CrateLoader is supposed to be the "immutable per-session configuration" in this case, that's why I want to make sure that it's indeed the same all the time.
There was a problem hiding this comment.
I've reverted this bit, CrateLoader is now constructed in the same place as before.
I'll try to do something with it later.
petrochenkov
commented
Oct 13, 2019
I've added a couple more commits. cc @michaelwoerister, perhaps you can review this if @eddyb is unavailable? |
bors
commented
Oct 14, 2019
☔ The latest upstream changes (presumably #65240) made this pull request unmergeable. Please resolve the merge conflicts. |
michaelwoerister
commented
Oct 14, 2019
@petrochenkov I put it on my todo list. |
eddyb
commented
Oct 14, 2019
Was there another PR with a similar title? For some reason I thought I reviewed this. |
petrochenkov
commented
Oct 14, 2019
Yeah, probably the previous one - #65026. |
Use a more traditional scheme with providing them as a resolver output
eddyb
commented
Oct 14, 2019
r=me after rebase. |
petrochenkov
commented
Oct 14, 2019
@bors r=eddyb |
bors
commented
Oct 14, 2019
📌 Commit f5baad2 has been approved by |
bors
commented
Oct 14, 2019
⌛ Testing commit f5baad2 with merge db0b0c5143f9ccecc648b233f781e4c644678b28... |
rust-highfive
commented
Oct 14, 2019
Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
bors
commented
Oct 14, 2019
💔 Test failed - checks-azure |
emilyalbini
commented
Oct 14, 2019
@bors retry azure network error |
rustc_metadata: Privatize private code and remove dead code Also some minor cleanup and documentation improvements. r? @eddyb
bors
commented
Oct 15, 2019
⌛ Testing commit f5baad2 with merge 592927c191719918d0781e47e5355d7c538739a8... |
tmandry
commented
Oct 15, 2019
@bors retry rolled up |
Rollup of 10 pull requests Successful merges: - #65170 (rustc_metadata: Privatize private code and remove dead code) - #65260 (Optimize `LexicalResolve::expansion`.) - #65261 (Remove `Option` from `TokenStream`) - #65332 (std::fmt: reorder docs) - #65340 (Several changes to the codegen backend organization) - #65365 (Include const generic arguments in metadata) - #65398 (Bring attention to suggestions when the only difference is capitalization) - #65410 (syntax: add parser recovery for intersection- / and-patterns `p1 @ p2`) - #65415 (Remove an outdated test output file) - #65416 (Minor sync changes) Failed merges: r? @ghost
rust-highfive
commented
Oct 15, 2019
Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Also some minor cleanup and documentation improvements.
r? @eddyb