diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 8be7f4478fa09..51a62cd065843 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -1305,7 +1305,8 @@ impl MacroDef { } } -#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy)] +// Clippy uses Hash and PartialEq +#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy, Hash, PartialEq)] pub enum StrStyle { /// A regular string, like `"foo"`. Cooked, @@ -1327,7 +1328,8 @@ pub struct Lit { pub span: Span, } -#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy)] +// Clippy uses Hash and PartialEq +#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy, Hash, PartialEq)] pub enum LitIntType { Signed(IntTy), Unsigned(UintTy), @@ -1337,7 +1339,8 @@ pub enum LitIntType { /// Literal kind. /// /// E.g., `"foo"`, `42`, `12.34`, or `bool`. -#[derive(Clone, RustcEncodable, RustcDecodable, Debug)] +// Clippy uses Hash and PartialEq +#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Hash, PartialEq)] pub enum LitKind { /// A string literal (`"foo"`). Str(Symbol, StrStyle), diff --git a/src/tools/clippy b/src/tools/clippy index cbedd97b3a580..e8d5a9e95c145 160000 --- a/src/tools/clippy +++ b/src/tools/clippy @@ -1 +1 @@ -Subproject commit cbedd97b3a58023eff365a2fa74700d06115144a +Subproject commit e8d5a9e95c145a3a9be89c582d8a6f88d4ea7037