File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1111#![ allow( warnings) ]
1212
1313use std:: mem;
14- use rustc_data_structures:: ptr_key:: PtrKey ;
1514use rustc_data_structures:: sync:: { Lock , LockGuard , Lrc , Weak } ;
1615use rustc_data_structures:: OnDrop ;
1716use syntax_pos:: Span ;
@@ -283,7 +282,7 @@ where
283282fn cycle_check < ' tcx > ( query : Lrc < QueryJob < ' tcx > > ,
284283 span : Span ,
285284 stack : & mut Vec < ( Span , Lrc < QueryJob < ' tcx > > ) > ,
286- visited : & mut HashSet < PtrKey < ' tcx , QueryJob < ' tcx > > >
285+ visited : & mut HashSet < * const QueryJob < ' tcx > >
287286) -> Option < Option < Waiter < ' tcx > > > {
288287 if visited. contains ( & query. as_ptr ( ) ) {
289288 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>>,
322321#[ cfg( parallel_queries) ]
323322fn connected_to_root < ' tcx > (
324323 query : Lrc < QueryJob < ' tcx > > ,
325- visited : & mut HashSet < PtrKey < ' tcx , QueryJob < ' tcx > > >
324+ visited : & mut HashSet < * const QueryJob < ' tcx > >
326325) -> bool {
327326 // We already visited this or we're deliberately ignoring it
328327 if visited. contains ( & query. as_ptr ( ) ) {
You can’t perform that action at this time.
0 commit comments