about summary refs log tree commit diff
path: root/src/librustc_codegen_utils
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-09-26 18:54:39 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2019-09-28 11:47:36 -0400
commit14a5aefb01bb4f18749ab56cd9fd37bf93c86a37 (patch)
tree01239699d8cb998460c98b985f52df26a9768398 /src/librustc_codegen_utils
parentf60e58e57580d47e82a374bad73214b6bfec085a (diff)
downloadrust-14a5aefb01bb4f18749ab56cd9fd37bf93c86a37.tar.gz
rust-14a5aefb01bb4f18749ab56cd9fd37bf93c86a37.zip
Switch over all StableHash impls to new format
Diffstat (limited to 'src/librustc_codegen_utils')
-rw-r--r--src/librustc_codegen_utils/symbol_names/legacy.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_utils/symbol_names/legacy.rs b/src/librustc_codegen_utils/symbol_names/legacy.rs
index 277aa2db33a..a9866c8c0b2 100644
--- a/src/librustc_codegen_utils/symbol_names/legacy.rs
+++ b/src/librustc_codegen_utils/symbol_names/legacy.rs
@@ -89,7 +89,7 @@ fn get_symbol_hash<'tcx>(
         def_id, substs
     );
 
-    let mut hasher = StableHasher::<u64>::new();
+    let mut hasher = StableHasher::new();
     let mut hcx = tcx.create_stable_hashing_context();
 
     record_time(&tcx.sess.perf_stats.symbol_hash_time, || {
@@ -132,7 +132,7 @@ fn get_symbol_hash<'tcx>(
     });
 
     // 64 bits should be enough to avoid collisions.
-    hasher.finish()
+    hasher.finish::<u64>()
 }
 
 // Follow C++ namespace-mangling style, see