diff options
Diffstat (limited to 'src/libsyntax/attr.rs')
| -rw-r--r-- | src/libsyntax/attr.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index 527e851ae35..4a38835f86b 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -307,7 +307,7 @@ pub fn find_crateid(attrs: &[Attribute]) -> Option<CrateId> { } } -#[deriving(Eq)] +#[deriving(PartialEq)] pub enum InlineAttr { InlineNone, InlineHint, @@ -396,7 +396,7 @@ pub struct Stability { } /// The available stability levels. -#[deriving(Eq,Ord,Clone,Show)] +#[deriving(PartialEq,PartialOrd,Clone,Show)] pub enum StabilityLevel { Deprecated, Experimental, @@ -522,7 +522,7 @@ fn int_type_of_word(s: &str) -> Option<IntType> { } } -#[deriving(Eq, Show)] +#[deriving(PartialEq, Show)] pub enum ReprAttr { ReprAny, ReprInt(Span, IntType), @@ -539,7 +539,7 @@ impl ReprAttr { } } -#[deriving(Eq, Show)] +#[deriving(PartialEq, Show)] pub enum IntType { SignedInt(ast::IntTy), UnsignedInt(ast::UintTy) |
