提交 6a365942 编写于 作者: M Michael Woerister

incr.comp.: Improve error message for unknown fingerprint.

上级 6c1529b3
......@@ -328,7 +328,12 @@ pub fn read_index(&self, dep_node_index: DepNodeIndex) {
}
pub fn fingerprint_of(&self, dep_node: &DepNode) -> Fingerprint {
self.fingerprints.borrow()[dep_node]
match self.fingerprints.borrow().get(dep_node) {
Some(&fingerprint) => fingerprint,
None => {
bug!("Could not find current fingerprint for {:?}", dep_node)
}
}
}
pub fn prev_fingerprint_of(&self, dep_node: &DepNode) -> Option<Fingerprint> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册