Move OnDiskCache to rustc_query_impl.
This commit is contained in:
parent
68511b574f
commit
81241cbf3a
14 changed files with 226 additions and 197 deletions
|
@ -131,7 +131,10 @@ impl<'a> std::fmt::Debug for CrateDump<'a> {
|
|||
|
||||
impl CStore {
|
||||
pub fn from_tcx(tcx: TyCtxt<'_>) -> &CStore {
|
||||
tcx.cstore_as_any().downcast_ref::<CStore>().expect("`tcx.cstore` is not a `CStore`")
|
||||
tcx.cstore_untracked()
|
||||
.as_any()
|
||||
.downcast_ref::<CStore>()
|
||||
.expect("`tcx.cstore` is not a `CStore`")
|
||||
}
|
||||
|
||||
fn alloc_new_crate_num(&mut self) -> CrateNum {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue