Skip to content

Commit 6089af7

Browse files
Gankrafintelia
authored andcommitted
disambiguate hashes
1 parent 14ee4e4 commit 6089af7

File tree

1 file changed

+3
-3
lines changed
  • src/libstd/collections/hash

1 file changed

+3
-3
lines changed

src/libstd/collections/hash/map.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4294,7 +4294,7 @@ mod test_map {
42944294
fn test_raw_entry() {
42954295
use super::RawEntry::{Occupied, Vacant};
42964296

4297-
let xs = [(1, 10), (2, 20), (3, 30), (4, 40), (5, 50), (6, 60)];
4297+
let xs = [(1i32, 10i32), (2, 20), (3, 30), (4, 40), (5, 50), (6, 60)];
42984298

42994299
let mut map: HashMap<_, _> = xs.iter().cloned().collect();
43004300

@@ -4307,7 +4307,7 @@ mod test_map {
43074307
}
43084308
}
43094309
assert_eq!(map.raw_entry_immut().hash_with(|mut h| {
4310-
1.hash(&mut h);
4310+
1i32.hash(&mut h);
43114311
h.finish()
43124312
}).search_with(|k| *k == 1)
43134313
.unwrap(), (&10, &100));
@@ -4328,7 +4328,7 @@ mod test_map {
43284328

43294329
// Existing key (take)
43304330
match map.raw_entry().hash_with(|mut h| {
4331-
3.hash(&mut h);
4331+
3i32.hash(&mut h);
43324332
h.finish()
43334333
}).search_with(|k| *k == 3) {
43344334
Vacant(_) => unreachable!(),

0 commit comments

Comments
 (0)