File tree 2 files changed +6
-5
lines changed
rustc_middle/src/ty/query
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,6 @@ macro_rules! define_callbacks {
230
230
}
231
231
232
232
pub trait QueryEngine <' tcx>: rustc_data_structures:: sync:: Sync {
233
- #[ cfg( parallel_compiler) ]
234
233
unsafe fn deadlock( & ' tcx self , tcx: TyCtxt <' tcx>, registry: & rustc_rayon_core:: Registry ) ;
235
234
236
235
fn encode_query_results(
Original file line number Diff line number Diff line change @@ -631,10 +631,12 @@ macro_rules! define_queries_struct {
631
631
}
632
632
633
633
impl QueryEngine <' tcx> for Queries <' tcx> {
634
- #[ cfg( parallel_compiler) ]
635
- unsafe fn deadlock( & ' tcx self , tcx: TyCtxt <' tcx>, registry: & rustc_rayon_core:: Registry ) {
636
- let tcx = QueryCtxt { tcx, queries: self } ;
637
- rustc_query_system:: query:: deadlock( tcx, registry)
634
+ unsafe fn deadlock( & ' tcx self , _tcx: TyCtxt <' tcx>, _registry: & rustc_rayon_core:: Registry ) {
635
+ #[ cfg( parallel_compiler) ]
636
+ {
637
+ let tcx = QueryCtxt { tcx: _tcx, queries: self } ;
638
+ rustc_query_system:: query:: deadlock( tcx, _registry)
639
+ }
638
640
}
639
641
640
642
fn encode_query_results(
You can’t perform that action at this time.
0 commit comments