-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Remove the cstore
reference from Session
#44341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the cstore
reference from Session
#44341
Conversation
r? @arielb1 (rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ |
📌 Commit 27b50f6 has been approved by |
@bors r- |
27b50f6
to
8a7d919
Compare
…ulating CrateStore access in tcx.
8a7d919
to
ef96a41
Compare
@bors r=nikomatsakis |
📌 Commit ef96a41 has been approved by |
@bors rollup |
@bors rollup- actually, this feels like it might have perf implications |
Note that this is also likely to conflict quite a bit with #44142, where I think a lot of the |
@alexcrichton I don't mind holding off on this PR until #44142 is merged. |
@bors: r- Ok gonna r- this until #44142 lands. I feel bad though as that's gonna be a nasty merge, so I went ahead and did it! I rebased this commit in alexcrichton@a00804b and then tacked alexcrichton@e3e88cd on top which makes |
Thanks, @alexcrichton! I'll close this then in favor of #44142. |
I've reopened this as #44420 |
…aelwoerister rustc: Make `CrateStore` private to `TyCtxt` This commit makes the `CrateStore` object private to the `ty/context.rs` module and also absent on the `Session` itself. cc rust-lang#44390 cc rust-lang#44341 (initial commit pulled and rebased from here)
…aelwoerister rustc: Make `CrateStore` private to `TyCtxt` This commit makes the `CrateStore` object private to the `ty/context.rs` module and also absent on the `Session` itself. cc rust-lang#44390 cc rust-lang#44341 (initial commit pulled and rebased from here)
This PR removes the
CrateStore
reference fromSession
in preparation to control allCrateStore
access through thetcx
. This control will later be used to either interpose aCrateStore
wrapper for dependency tracking or forcing allCrateStore
access to go through queries.