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 195c42c commit 003b169Copy full SHA for 003b169
src/librustc_incremental/calculate_svh/mod.rs
@@ -88,7 +88,12 @@ impl<'a> ::std::ops::Index<&'a DepNode<DefId>> for IncrementalHashesMap {
88
type Output = Fingerprint;
89
90
fn index(&self, index: &'a DepNode<DefId>) -> &Fingerprint {
91
- &self.hashes[index]
+ match self.hashes.get(index) {
92
+ Some(fingerprint) => fingerprint,
93
+ None => {
94
+ bug!("Could not find ICH for {:?}", index);
95
+ }
96
97
}
98
99
0 commit comments