We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ae1eac commit caf29b2Copy full SHA for caf29b2
compiler/rustc_query_system/src/query/plumbing.rs
@@ -257,10 +257,6 @@ where
257
// Forget ourself so our destructor won't poison the query
258
mem::forget(self);
259
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
-
264
let job = {
265
#[cfg(parallel_compiler)]
266
let mut lock = state.active.get_shard_by_value(&key).lock();
@@ -271,6 +267,7 @@ where
271
267
QueryResult::Poisoned => panic!(),
272
268
}
273
269
};
270
+ cache.complete(key, result, dep_node_index);
274
275
job.signal_complete();
276
0 commit comments