Skip to content

Commit

Permalink
Disable hash checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Aug 12, 2021
1 parent a542344 commit 7ee8972
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/rustc_metadata/src/rmeta/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,9 @@ impl MetadataBlob {
// panicking if the computed hash is not equal to
// the original hash stored in the file.
fn check_hash(&self, filename: &Path) {
if true {
return;
}
// We store our 32-byte (256-bit) SHA256 hash at
// the end of the file
let hash_offset = self.raw_bytes().len() - 32;
Expand Down

0 comments on commit 7ee8972

Please sign in to comment.