Skip to content

Commit caf29b2

Browse files
committed
Remove parallel compiler fix
1 parent 1ae1eac commit caf29b2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/rustc_query_system/src/query/plumbing.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,6 @@ where
257257
// Forget ourself so our destructor won't poison the query
258258
mem::forget(self);
259259

260-
// Mark as complete before we remove the job from the active state
261-
// so no other thread can re-execute this query.
262-
cache.complete(key.clone(), result, dep_node_index);
263-
264260
let job = {
265261
#[cfg(parallel_compiler)]
266262
let mut lock = state.active.get_shard_by_value(&key).lock();
@@ -271,6 +267,7 @@ where
271267
QueryResult::Poisoned => panic!(),
272268
}
273269
};
270+
cache.complete(key, result, dep_node_index);
274271

275272
job.signal_complete();
276273
}

0 commit comments

Comments
 (0)