Use usize in ApplicableDeclarationsCacheQuery's hash method.

This commit is contained in:
Ms2ger 2015-03-29 12:45:07 +02:00
parent e39c68e307
commit 339ab881a2

View file

@ -122,7 +122,7 @@ impl<'a> PartialEq<ApplicableDeclarationsCacheEntry> for ApplicableDeclarationsC
impl<'a> Hash for ApplicableDeclarationsCacheQuery<'a> {
fn hash<H: Hasher>(&self, state: &mut H) {
for declaration in self.declarations.iter() {
let ptr: uint = unsafe {
let ptr: usize = unsafe {
mem::transmute_copy(declaration)
};
ptr.hash(state);