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 a482177 commit 90c1601Copy full SHA for 90c1601
compiler/rustc_query_system/src/query/plumbing.rs
@@ -285,10 +285,12 @@ where
285
// We didn't find the query result in the query cache. Check if it was
286
// poisoned due to a panic instead.
287
let lock = query.query_state(qcx).active.get_shard_by_value(&key).lock();
288
- lock.get(&key).expect_job(query.name());
289
- panic!(
290
- "query result must in the cache or the query must be poisoned after a wait"
291
- );
+ match lock.get(&key) {
+ poisoned @ Some(QueryResult::Poisoned) => poisoned.expect_job(query.name()),
+ _ => panic!(
+ "query result must in the cache or the query must be poisoned after a wait"
292
+ ),
293
+ }
294
})
295
};
296
0 commit comments