From 21010f988f7b7d1a58c83eba35901955d3084628 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Fri, 13 May 2022 10:29:35 +0000 Subject: [PATCH] Remove unnecessary cgu name length hash --- compiler/rustc_query_system/src/dep_graph/dep_node.rs | 1 - 1 file changed, 1 deletion(-) 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 c274c2cc26c15..bb2179a24953b 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() } }