Skip to content

Commit 9d31462

Browse files
thomcclqd
authored andcommitted
Fix a couple missed hash constants
1 parent bb0969c commit 9d31462

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_data_structures/src/stable_hasher

1 file changed

+3
-3
lines changed

compiler/rustc_data_structures/src/stable_hasher/tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn test_hash_integers() {
3939
test_isize.hash(&mut h);
4040

4141
// This depends on the hashing algorithm. See note at top of file.
42-
let expected = (1784307454142909076, 11471672289340283879);
42+
let expected = (13997337031081104755, 6178945012502239489);
4343

4444
assert_eq!(h.finalize(), expected);
4545
}
@@ -53,7 +53,7 @@ fn test_hash_usize() {
5353
test_usize.hash(&mut h);
5454

5555
// This depends on the hashing algorithm. See note at top of file.
56-
let expected = (5798740672699530587, 11186240177685111648);
56+
let expected = (12037165114281468837, 3094087741167521712);
5757

5858
assert_eq!(h.finalize(), expected);
5959
}
@@ -67,7 +67,7 @@ fn test_hash_isize() {
6767
test_isize.hash(&mut h);
6868

6969
// This depends on the hashing algorithm. See note at top of file.
70-
let expected = (2789913510339652884, 674280939192711005);
70+
let expected = (3979067582695659080, 2322428596355037273);
7171

7272
assert_eq!(h.finalize(), expected);
7373
}

0 commit comments

Comments
 (0)