diff options
| author | SparrowLii <liyuan179@huawei.com> | 2022-06-29 10:02:30 +0800 |
|---|---|---|
| committer | SparrowLii <liyuan179@huawei.com> | 2022-06-29 10:02:30 +0800 |
| commit | fbca21edd27dcd6e49a8020ed77a133ffa357c63 (patch) | |
| tree | 2e95e882f80b978ca28d27324f23eb5b07e0c2d4 /compiler/rustc_query_impl | |
| parent | 3b0d4813ab461ec81eab8980bb884691c97c5a35 (diff) | |
| download | rust-fbca21edd27dcd6e49a8020ed77a133ffa357c63.tar.gz rust-fbca21edd27dcd6e49a8020ed77a133ffa357c63.zip | |
get rid of `tcx` in deadlock handler when parallel compilation
Diffstat (limited to 'compiler/rustc_query_impl')
| -rw-r--r-- | compiler/rustc_query_impl/src/lib.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_query_impl/src/plumbing.rs | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/compiler/rustc_query_impl/src/lib.rs b/compiler/rustc_query_impl/src/lib.rs index d06eb97798e..7c1fdc4e306 100644 --- a/compiler/rustc_query_impl/src/lib.rs +++ b/compiler/rustc_query_impl/src/lib.rs @@ -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; diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs index 66f4508f6b4..307ad4e844b 100644 --- a/compiler/rustc_query_impl/src/plumbing.rs +++ b/compiler/rustc_query_impl/src/plumbing.rs @@ -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>, |
