Skip to content

Commit

Permalink
Remove parallel compiler fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Feb 16, 2023
1 parent 1ae1eac commit caf29b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/rustc_query_system/src/query/plumbing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,6 @@ where
// Forget ourself so our destructor won't poison the query
mem::forget(self);

// Mark as complete before we remove the job from the active state
// so no other thread can re-execute this query.
cache.complete(key.clone(), result, dep_node_index);

let job = {
#[cfg(parallel_compiler)]
let mut lock = state.active.get_shard_by_value(&key).lock();
Expand All @@ -271,6 +267,7 @@ where
QueryResult::Poisoned => panic!(),
}
};
cache.complete(key, result, dep_node_index);

job.signal_complete();
}
Expand Down

0 comments on commit caf29b2

Please sign in to comment.