repair more hash functions
This commit is contained in:
parent
03a6e54212
commit
6c95e400d8
3 changed files with 17 additions and 17 deletions
|
|
@ -199,7 +199,7 @@ fn hash_ty(&&t: @ty) -> uint {
|
|||
}
|
||||
|
||||
fn hash_def_id(&&id: def_id) -> uint {
|
||||
id.crate as uint << 16u + (id.node as uint)
|
||||
(id.crate as uint << 16u) + (id.node as uint)
|
||||
}
|
||||
|
||||
fn eq_def_id(&&a: def_id, &&b: def_id) -> bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue