Skip to content

Commit baaab5c

Browse files
committed
Improve comment.
By removing "random number", which is no longer true. And also wrapping the overly long lines.
1 parent 8ef0219 commit baaab5c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • compiler/rustc_middle/src/dep_graph

compiler/rustc_middle/src/dep_graph/graph.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,10 @@ impl DepGraphData {
395395
}
396396
_ => {
397397
// The dep node indices are hashed here instead of hashing the dep nodes of the
398-
// dependencies. These indices may refer to different nodes per session, but this isn't
399-
// a problem here because we that ensure the final dep node hash is per session only by
400-
// combining it with the per session random number `anon_id_seed`. This hash only need
401-
// to map the dependencies to a single value on a per session basis.
398+
// dependencies. These indices may refer to different nodes per session, but this
399+
// isn't a problem here because we that ensure the final dep node hash is per
400+
// session only by combining it with the per session `anon_id_seed`. This hash only
401+
// need to map the dependencies to a single value on a per session basis.
402402
let mut hasher = StableHasher::new();
403403
reads.hash(&mut hasher);
404404

0 commit comments

Comments
 (0)