get rid of tcx
in deadlock handler when parallel compilation
This commit is contained in:
parent
3b0d4813ab
commit
fbca21edd2
4 changed files with 9 additions and 21 deletions
|
@ -27,6 +27,8 @@ use rustc_span::Span;
|
|||
mod plumbing;
|
||||
pub use plumbing::QueryCtxt;
|
||||
use rustc_query_system::query::*;
|
||||
#[cfg(parallel_compiler)]
|
||||
pub use rustc_query_system::query::{deadlock, QueryContext};
|
||||
|
||||
mod keys;
|
||||
use keys::Key;
|
||||
|
|
|
@ -132,11 +132,6 @@ impl<'tcx> QueryCtxt<'tcx> {
|
|||
self.queries.on_disk_cache.as_ref()
|
||||
}
|
||||
|
||||
#[cfg(parallel_compiler)]
|
||||
pub unsafe fn deadlock(self, registry: &rustc_rayon_core::Registry) {
|
||||
rustc_query_system::query::deadlock(self, registry)
|
||||
}
|
||||
|
||||
pub(super) fn encode_query_results(
|
||||
self,
|
||||
encoder: &mut on_disk_cache::CacheEncoder<'_, 'tcx>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue