about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2017-10-16 14:43:36 +0200
committerMichael Woerister <michaelwoerister@posteo>2017-10-16 14:44:40 +0200
commit10e289e19131b5339ef1a2e001ae0cfcf330c1b0 (patch)
tree16d51e7364642dc9235b20858221e519c26f495d /src/librustc_data_structures
parent74ebad4b63ce2ccaa6051b60031a6597ee4468ec (diff)
downloadrust-10e289e19131b5339ef1a2e001ae0cfcf330c1b0.tar.gz
rust-10e289e19131b5339ef1a2e001ae0cfcf330c1b0.zip
Make debuginfo::UniqueTypeId use 128 bit hash.
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/stable_hasher.rs31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/librustc_data_structures/stable_hasher.rs b/src/librustc_data_structures/stable_hasher.rs
index 3e526900110..831e113016f 100644
--- a/src/librustc_data_structures/stable_hasher.rs
+++ b/src/librustc_data_structures/stable_hasher.rs
@@ -61,37 +61,6 @@ impl<W: StableHasherResult> StableHasher<W> {
     }
 }
 
-impl StableHasherResult for [u8; 20] {
-    fn finish(hasher: StableHasher<Self>) -> Self {
-        let (_0, _1) = hasher.finalize();
-
-        [
-            (_0 >>  0) as u8,
-            (_0 >>  8) as u8,
-            (_0 >> 16) as u8,
-            (_0 >> 24) as u8,
-            (_0 >> 32) as u8,
-            (_0 >> 40) as u8,
-            (_0 >> 48) as u8,
-            (_0 >> 56) as u8,
-
-            17,
-            33,
-            47,
-            3,
-
-            (_1 >>  0) as u8,
-            (_1 >>  8) as u8,
-            (_1 >> 16) as u8,
-            (_1 >> 24) as u8,
-            (_1 >> 32) as u8,
-            (_1 >> 40) as u8,
-            (_1 >> 48) as u8,
-            (_1 >> 56) as u8,
-        ]
-    }
-}
-
 impl StableHasherResult for u128 {
     fn finish(hasher: StableHasher<Self>) -> Self {
         let (_0, _1) = hasher.finalize();