]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/ty.rs
create a sensible comparison trait hierarchy
[rust.git] / src / librustc / middle / ty.rs
index 9442a2144bdab36a13588662a25989ee38aac673..c364e099009fc5bd9cb9b0ce579e9f6b0890abbd 100644 (file)
@@ -633,13 +633,13 @@ pub fn is_bound(&self) -> bool {
     }
 }
 
-#[deriving(Clone, Eq, TotalOrd, TotalEq, Hash, Encodable, Decodable, Show)]
+#[deriving(Clone, Eq, Ord, TotalEq, TotalOrd, Hash, Encodable, Decodable, Show)]
 pub struct FreeRegion {
     scope_id: NodeId,
     bound_region: BoundRegion
 }
 
-#[deriving(Clone, Eq, TotalEq, TotalOrd, Hash, Encodable, Decodable, Show)]
+#[deriving(Clone, Eq, Ord, TotalEq, TotalOrd, Hash, Encodable, Decodable, Show)]
 pub enum BoundRegion {
     /// An anonymous region parameter for a given fn (&T)
     BrAnon(uint),