mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Support parallel compiler.
This commit is contained in:
parent
128f2224af
commit
635ff8e2a8
@ -404,9 +404,9 @@ where
|
||||
}
|
||||
#[cfg(parallel_compiler)]
|
||||
TryGetJob::JobCompleted(query_blocked_prof_timer) => {
|
||||
let (v, index) = cache
|
||||
.lookup(&key, |value, index| (value.clone(), index))
|
||||
.unwrap_or_else(|_| panic!("value must be in cache after waiting"));
|
||||
let Some((v, index)) = cache.lookup(&key) else {
|
||||
panic!("value must be in cache after waiting")
|
||||
};
|
||||
|
||||
if std::intrinsics::unlikely(qcx.dep_context().profiler().enabled()) {
|
||||
qcx.dep_context().profiler().query_cache_hit(index.into());
|
||||
|
Loading…
Reference in New Issue
Block a user