We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aec806e commit 95f3a7dCopy full SHA for 95f3a7d
compiler/rustc_query_system/src/query/plumbing.rs
@@ -45,15 +45,13 @@ enum QueryResult {
45
}
46
47
impl QueryResult {
48
-
49
/// Unwraps the query job and if poisoned will raise a [`FatalError`]
50
fn unwrap(self) -> QueryJob {
51
match self {
52
Self::Started(job) => job,
53
Self::Poisoned => FatalError.raise(),
54
55
56
57
58
59
impl<K> QueryState<K>
@@ -200,7 +198,7 @@ where
200
198
let job = {
201
199
let mut shard = state.active.lock_shard_by_value(&self.key);
202
let job = shard.remove(&self.key).unwrap().unwrap();
203
+
204
shard.insert(self.key, QueryResult::Poisoned);
205
job
206
};
0 commit comments