commit
2ddb605654
28 changed files with 203 additions and 180 deletions
|
|
@ -14,7 +14,7 @@ extern crate collections;
|
|||
|
||||
use collections::HashSet;
|
||||
|
||||
#[deriving(Eq, Hash)]
|
||||
#[deriving(Eq, TotalEq, Hash)]
|
||||
struct XYZ {
|
||||
x: int,
|
||||
y: int,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue