Skip to content

Commit 382285a

Browse files
committed
Revert some use of PtrKey to fix parallel_queries build
1 parent e7aeb2b commit 382285a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustc/ty/query/job.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![allow(warnings)]
1212

1313
use std::mem;
14-
use rustc_data_structures::ptr_key::PtrKey;
1514
use rustc_data_structures::sync::{Lock, LockGuard, Lrc, Weak};
1615
use rustc_data_structures::OnDrop;
1716
use syntax_pos::Span;
@@ -283,7 +282,7 @@ where
283282
fn 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)]
323322
fn 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()) {

0 commit comments

Comments
 (0)