We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
encode_node
1 parent bd8bff3 commit c4c4a8dCopy full SHA for c4c4a8d
compiler/rustc_query_system/src/dep_graph/serialized.rs
@@ -185,7 +185,9 @@ impl<K: DepKind> EncoderState<K> {
185
186
if let Some(record_graph) = &record_graph {
187
// Do not ICE when a query is called from within `with_query`.
188
- record_graph.with_lock(|record_graph| record_graph.push(index, node.node, &node.edges))
+ if let Some(record_graph) = &mut record_graph.try_lock() {
189
+ record_graph.push(index, node.node, &node.edges);
190
+ }
191
};
192
193
if let Some(stats) = &mut self.stats {
0 commit comments