Skip to content

Commit 85136db

Browse files
committed
Remove unnecessary cgu name length hash
This is a tiny optimization
1 parent e40d5e8 commit 85136db

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_query_system/src/dep_graph/dep_node.rs

-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ pub struct WorkProductId {
164164
impl WorkProductId {
165165
pub fn from_cgu_name(cgu_name: &str) -> WorkProductId {
166166
let mut hasher = StableHasher::new();
167-
cgu_name.len().hash(&mut hasher);
168167
cgu_name.hash(&mut hasher);
169168
WorkProductId { hash: hasher.finish() }
170169
}

0 commit comments

Comments
 (0)