diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-06-28 21:33:47 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-07-18 11:14:08 +0200 |
| commit | 5b921505ef0892e4d83d0e2743e3e2eecd03d461 (patch) | |
| tree | e41e4e413bb8e83b427ede51b034257f1ea266be /compiler/rustc_middle | |
| parent | 81241cbf3ae39db6188b7965b34e444f48e7ebbd (diff) | |
| download | rust-5b921505ef0892e4d83d0e2743e3e2eecd03d461.tar.gz rust-5b921505ef0892e4d83d0e2743e3e2eecd03d461.zip | |
Remove deadlock virtual call.
Diffstat (limited to 'compiler/rustc_middle')
| -rw-r--r-- | compiler/rustc_middle/src/ty/context.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_middle/src/ty/query.rs | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index 47cc328f6c8..b8405801106 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -71,7 +71,7 @@ use std::mem; use std::ops::{Bound, Deref}; use std::sync::Arc; -pub trait OnDiskCache<'tcx> { +pub trait OnDiskCache<'tcx>: rustc_data_structures::sync::Sync { /// Creates a new `OnDiskCache` instance from the serialized data in `data`. fn new(sess: &'tcx Session, data: Vec<u8>, start_pos: usize) -> Self where diff --git a/compiler/rustc_middle/src/ty/query.rs b/compiler/rustc_middle/src/ty/query.rs index 38ed82933fe..15a8888ee65 100644 --- a/compiler/rustc_middle/src/ty/query.rs +++ b/compiler/rustc_middle/src/ty/query.rs @@ -233,9 +233,6 @@ macro_rules! define_callbacks { pub trait QueryEngine<'tcx>: rustc_data_structures::sync::Sync { fn as_any(&'tcx self) -> &'tcx dyn std::any::Any; - #[cfg(parallel_compiler)] - unsafe fn deadlock(&'tcx self, tcx: TyCtxt<'tcx>, registry: &rustc_rayon_core::Registry); - fn try_mark_green(&'tcx self, tcx: TyCtxt<'tcx>, dep_node: &dep_graph::DepNode) -> bool; $($(#[$attr])* |
