Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICH: Handle MacroDef HIR instances. #37787

Merged
merged 5 commits into from
Nov 19, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add error message when not finding the ICH of a DepNode.
  • Loading branch information
michaelwoerister committed Nov 18, 2016

Verified

This commit was signed with the committer’s verified signature.
targos Michaël Zasso
commit 003b1699c0044aef757c9c32df13a529fd4c485b
7 changes: 6 additions & 1 deletion src/librustc_incremental/calculate_svh/mod.rs
Original file line number Diff line number Diff line change
@@ -88,7 +88,12 @@ impl<'a> ::std::ops::Index<&'a DepNode<DefId>> for IncrementalHashesMap {
type Output = Fingerprint;

fn index(&self, index: &'a DepNode<DefId>) -> &Fingerprint {
&self.hashes[index]
match self.hashes.get(index) {
Some(fingerprint) => fingerprint,
None => {
bug!("Could not find ICH for {:?}", index);
}
}
}
}