We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
dep_node_debug_str
self.data
None
1 parent 6d049fb commit 4f1f671Copy full SHA for 4f1f671
src/librustc/dep_graph/graph.rs
@@ -227,7 +227,7 @@ impl DepGraph {
227
}
228
229
pub(super) fn dep_node_debug_str(&self, dep_node: DepNode) -> Option<String> {
230
- self.data.as_ref().unwrap().dep_node_debug.borrow().get(&dep_node).cloned()
+ self.data.as_ref().and_then(|t| t.dep_node_debug.borrow().get(&dep_node).cloned())
231
232
233
0 commit comments