diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-09-26 18:54:39 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-09-28 11:47:36 -0400 |
| commit | 14a5aefb01bb4f18749ab56cd9fd37bf93c86a37 (patch) | |
| tree | 01239699d8cb998460c98b985f52df26a9768398 /src/librustc_codegen_llvm/debuginfo | |
| parent | f60e58e57580d47e82a374bad73214b6bfec085a (diff) | |
| download | rust-14a5aefb01bb4f18749ab56cd9fd37bf93c86a37.tar.gz rust-14a5aefb01bb4f18749ab56cd9fd37bf93c86a37.zip | |
Switch over all StableHash impls to new format
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo')
| -rw-r--r-- | src/librustc_codegen_llvm/debuginfo/metadata.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/metadata.rs b/src/librustc_codegen_llvm/debuginfo/metadata.rs index 1696e56c01e..544d6794e21 100644 --- a/src/librustc_codegen_llvm/debuginfo/metadata.rs +++ b/src/librustc_codegen_llvm/debuginfo/metadata.rs @@ -187,7 +187,7 @@ impl TypeMap<'ll, 'tcx> { // The hasher we are using to generate the UniqueTypeId. We want // something that provides more than the 64 bits of the DefaultHasher. - let mut hasher = StableHasher::<Fingerprint>::new(); + let mut hasher = StableHasher::new(); let mut hcx = cx.tcx.create_stable_hashing_context(); let type_ = cx.tcx.erase_regions(&type_); hcx.while_hashing_spans(false, |hcx| { @@ -195,7 +195,7 @@ impl TypeMap<'ll, 'tcx> { type_.hash_stable(hcx, &mut hasher); }); }); - let unique_type_id = hasher.finish().to_hex(); + let unique_type_id = hasher.finish::<Fingerprint>().to_hex(); let key = self.unique_id_interner.intern(&unique_type_id); self.type_to_unique_id.insert(type_, UniqueTypeId(key)); |
