@@ -1305,7 +1305,8 @@ impl MacroDef {
1305
1305
}
1306
1306
}
1307
1307
1308
- #[ derive( Clone , RustcEncodable , RustcDecodable , Debug , Copy ) ]
1308
+ // Clippy uses Hash and PartialEq
1309
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Debug , Copy , Hash , PartialEq ) ]
1309
1310
pub enum StrStyle {
1310
1311
/// A regular string, like `"foo"`.
1311
1312
Cooked ,
@@ -1327,7 +1328,8 @@ pub struct Lit {
1327
1328
pub span : Span ,
1328
1329
}
1329
1330
1330
- #[ derive( Clone , RustcEncodable , RustcDecodable , Debug , Copy ) ]
1331
+ // Clippy uses Hash and PartialEq
1332
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Debug , Copy , Hash , PartialEq ) ]
1331
1333
pub enum LitIntType {
1332
1334
Signed ( IntTy ) ,
1333
1335
Unsigned ( UintTy ) ,
@@ -1337,7 +1339,8 @@ pub enum LitIntType {
1337
1339
/// Literal kind.
1338
1340
///
1339
1341
/// E.g., `"foo"`, `42`, `12.34`, or `bool`.
1340
- #[ derive( Clone , RustcEncodable , RustcDecodable , Debug ) ]
1342
+ // Clippy uses Hash and PartialEq
1343
+ #[ derive( Clone , RustcEncodable , RustcDecodable , Debug , Hash , PartialEq ) ]
1341
1344
pub enum LitKind {
1342
1345
/// A string literal (`"foo"`).
1343
1346
Str ( Symbol , StrStyle ) ,
0 commit comments