Skip to content

Commit f5f88ea

Browse files
author
Tage Johansson
committed
remove a test checking that the hash for bit sets of different domain
sizes are different The new implementation of DenseBitSet doesn't store the exact domain size, so of course the hash values for identical sets with different domain sizes may be equal.
1 parent 5081f73 commit f5f88ea

File tree

1 file changed

+0
-10
lines changed
  • compiler/rustc_data_structures/src/stable_hasher

1 file changed

+0
-10
lines changed

compiler/rustc_data_structures/src/stable_hasher/tests.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,6 @@ fn hash<T: HashStable<()>>(t: &T) -> Hash128 {
1414
h.finish()
1515
}
1616

17-
// Check that bit set hash includes the domain size.
18-
#[test]
19-
fn test_hash_bit_set() {
20-
use rustc_index::bit_set::DenseBitSet;
21-
let a: DenseBitSet<usize> = DenseBitSet::new_empty(1);
22-
let b: DenseBitSet<usize> = DenseBitSet::new_empty(2);
23-
assert_ne!(a, b);
24-
assert_ne!(hash(&a), hash(&b));
25-
}
26-
2717
// Check that bit matrix hash includes the matrix dimensions.
2818
#[test]
2919
fn test_hash_bit_matrix() {

0 commit comments

Comments
 (0)