about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorInokentiy Babushkin <twk@twki.de>2017-06-11 16:45:51 +0200
committerInokentiy Babushkin <twk@twki.de>2017-06-11 16:45:51 +0200
commitafe841587df0d20b344b576641d0a32d32b87f54 (patch)
treedb83f7678bcc6d614803197dbab1cd1bde11126e /src/librustc_data_structures
parent634cd2ce7398a82ee066e3111b9d20f837d39728 (diff)
downloadrust-afe841587df0d20b344b576641d0a32d32b87f54.tar.gz
rust-afe841587df0d20b344b576641d0a32d32b87f54.zip
External spans: fixed unit tests and addressed review.
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/stable_hasher.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_data_structures/stable_hasher.rs b/src/librustc_data_structures/stable_hasher.rs
index f3572d3e25b..5e291ea3c15 100644
--- a/src/librustc_data_structures/stable_hasher.rs
+++ b/src/librustc_data_structures/stable_hasher.rs
@@ -81,7 +81,7 @@ impl StableHasherResult for [u8; 20] {
 impl StableHasherResult for u128 {
     fn finish(mut hasher: StableHasher<Self>) -> Self {
         let hash_bytes: &[u8] = hasher.finalize();
-        assert!(hash_bytes.len() >= mem::size_of::<u64>() * 2);
+        assert!(hash_bytes.len() >= mem::size_of::<u128>());
 
         unsafe {
             ::std::ptr::read_unaligned(hash_bytes.as_ptr() as *const u128)