Skip to content

Commit

Permalink
Remove unnecessary cgu name length hash
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed May 13, 2022
1 parent 97d48be commit 21010f9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion compiler/rustc_query_system/src/dep_graph/dep_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() }
}
Expand Down

0 comments on commit 21010f9

Please sign in to comment.