File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11
11
#![ allow( warnings) ]
12
12
13
13
use std:: mem;
14
- use rustc_data_structures:: ptr_key:: PtrKey ;
15
14
use rustc_data_structures:: sync:: { Lock , LockGuard , Lrc , Weak } ;
16
15
use rustc_data_structures:: OnDrop ;
17
16
use syntax_pos:: Span ;
@@ -283,7 +282,7 @@ where
283
282
fn cycle_check < ' tcx > ( query : Lrc < QueryJob < ' tcx > > ,
284
283
span : Span ,
285
284
stack : & mut Vec < ( Span , Lrc < QueryJob < ' tcx > > ) > ,
286
- visited : & mut HashSet < PtrKey < ' tcx , QueryJob < ' tcx > > >
285
+ visited : & mut HashSet < * const QueryJob < ' tcx > >
287
286
) -> Option < Option < Waiter < ' tcx > > > {
288
287
if visited. contains ( & query. as_ptr ( ) ) {
289
288
return if let Some ( p) = stack. iter ( ) . position ( |q| q. 1 . as_ptr ( ) == query. as_ptr ( ) ) {
@@ -322,7 +321,7 @@ fn cycle_check<'tcx>(query: Lrc<QueryJob<'tcx>>,
322
321
#[ cfg( parallel_queries) ]
323
322
fn connected_to_root < ' tcx > (
324
323
query : Lrc < QueryJob < ' tcx > > ,
325
- visited : & mut HashSet < PtrKey < ' tcx , QueryJob < ' tcx > > >
324
+ visited : & mut HashSet < * const QueryJob < ' tcx > >
326
325
) -> bool {
327
326
// We already visited this or we're deliberately ignoring it
328
327
if visited. contains ( & query. as_ptr ( ) ) {
You can’t perform that action at this time.
0 commit comments