about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2022-05-13 10:29:35 +0000
committerbjorn3 <bjorn3@users.noreply.github.com>2022-06-06 12:29:44 +0000
commit85136dbe56dbbd7cdbcb27886a03807ea265ecd1 (patch)
tree1b4eebb429b88ec0667f079e2d0584a333995e01
parente40d5e83dc133d093c22c7ff016b10daa4f40dcf (diff)
downloadrust-85136dbe56dbbd7cdbcb27886a03807ea265ecd1.tar.gz
rust-85136dbe56dbbd7cdbcb27886a03807ea265ecd1.zip
Remove unnecessary cgu name length hash
This is a tiny optimization
-rw-r--r--compiler/rustc_query_system/src/dep_graph/dep_node.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_query_system/src/dep_graph/dep_node.rs b/compiler/rustc_query_system/src/dep_graph/dep_node.rs
index c274c2cc26c..bb2179a2495 100644
--- a/compiler/rustc_query_system/src/dep_graph/dep_node.rs
+++ b/compiler/rustc_query_system/src/dep_graph/dep_node.rs
@@ -164,7 +164,6 @@ pub struct WorkProductId {
 impl WorkProductId {
     pub fn from_cgu_name(cgu_name: &str) -> WorkProductId {
         let mut hasher = StableHasher::new();
-        cgu_name.len().hash(&mut hasher);
         cgu_name.hash(&mut hasher);
         WorkProductId { hash: hasher.finish() }
     }