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 95f3a7d commit fc561f0Copy full SHA for fc561f0
compiler/rustc_query_system/src/query/plumbing.rs
@@ -282,13 +282,10 @@ where
282
// We didn't find the query result in the query cache. Check if it was
283
// poisoned due to a panic instead.
284
let lock = query.query_state(qcx).active.get_shard_by_value(&key).lock();
285
- match lock.get(&key) {
286
- // The query we waited on panicked. Continue unwinding here.
287
- Some(QueryResult::Poisoned) => FatalError.raise(),
288
- _ => panic!(
289
- "query result must in the cache or the query must be poisoned after a wait"
290
- ),
291
- }
+ lock.get(&key).unwrap();
+ panic!(
+ "query result must in the cache or the query must be poisoned after a wait"
+ );
292
})
293
};
294
0 commit comments