auto merge of #13088 : thestinger/rust/hashmap, r=cmr

Closes #5283
This commit is contained in:
bors 2014-03-22 23:46:58 -07:00
commit 2ddb605654
28 changed files with 203 additions and 180 deletions

View file

@ -14,7 +14,7 @@ extern crate collections;
use collections::HashSet;
#[deriving(Eq, Hash)]
#[deriving(Eq, TotalEq, Hash)]
struct XYZ {
x: int,
y: int,

View file

@ -42,6 +42,8 @@ impl<'tcx> Eq for TypeStructure<'tcx> {
}
}
impl<'tcx> TotalEq for TypeStructure<'tcx> {}
struct TypeContext<'tcx, 'ast> {
ty_arena: &'tcx Arena,
types: Vec<Type<'tcx>> ,
@ -86,7 +88,7 @@ impl<'tcx,'ast> TypeContext<'tcx, 'ast> {
}
}
#[deriving(Eq, Hash)]
#[deriving(Eq, TotalEq, Hash)]
struct NodeId {
id: uint
}