Skip to content

Commit 38c39ff

Browse files
committed
Remove QueryWaiter::notify
1 parent 14786ce commit 38c39ff

File tree

1 file changed

+2
-8
lines changed
  • compiler/rustc_query_system/src/query

1 file changed

+2
-8
lines changed

compiler/rustc_query_system/src/query/job.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,6 @@ struct QueryWaiter {
163163
cycle: Mutex<Option<CycleError>>,
164164
}
165165

166-
impl QueryWaiter {
167-
fn notify(&self, registry: &rayon_core::Registry) {
168-
rayon_core::mark_unblocked(registry);
169-
self.condvar.notify_one();
170-
}
171-
}
172-
173166
#[derive(Debug)]
174167
struct QueryLatchInfo {
175168
complete: bool,
@@ -232,7 +225,8 @@ impl QueryLatch {
232225
info.complete = true;
233226
let registry = rayon_core::Registry::current();
234227
for waiter in info.waiters.drain(..) {
235-
waiter.notify(&registry);
228+
rayon_core::mark_unblocked(&registry);
229+
waiter.condvar.notify_one();
236230
}
237231
}
238232

0 commit comments

Comments
 (0)