@@ -40,13 +40,13 @@ impl DocFragmentKind {
4040 }
4141}
4242
43- #[ derive( Clone , Copy , PartialEq , Eq , Encodable , Decodable , Debug , HashStable_Generic ) ]
43+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , Encodable , Decodable , Debug , HashStable_Generic ) ]
4444pub enum CommentKind {
4545 Line ,
4646 Block ,
4747}
4848
49- #[ derive( Copy , Clone , PartialEq , Debug , Encodable , Decodable , HashStable_Generic ) ]
49+ #[ derive( Copy , Clone , PartialEq , Eq , Hash , Debug , Encodable , Decodable , HashStable_Generic ) ]
5050pub enum InvisibleOrigin {
5151 // From the expansion of a metavariable in a declarative macro.
5252 MetaVar ( MetaVarKind ) ,
@@ -123,7 +123,7 @@ impl fmt::Display for MetaVarKind {
123123/// Describes how a sequence of token trees is delimited.
124124/// Cannot use `proc_macro::Delimiter` directly because this
125125/// structure should implement some additional traits.
126- #[ derive( Copy , Clone , Debug , PartialEq , Encodable , Decodable , HashStable_Generic ) ]
126+ #[ derive( Copy , Clone , Debug , PartialEq , Eq , Hash , Encodable , Decodable , HashStable_Generic ) ]
127127pub enum Delimiter {
128128 /// `( ... )`
129129 Parenthesis ,
@@ -186,7 +186,7 @@ impl Delimiter {
186186// type. This means that float literals like `1f32` are classified by this type
187187// as `Int`. Only upon conversion to `ast::LitKind` will such a literal be
188188// given the `Float` kind.
189- #[ derive( Clone , Copy , PartialEq , Encodable , Decodable , Debug , HashStable_Generic ) ]
189+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , Encodable , Decodable , Debug , HashStable_Generic ) ]
190190pub enum LitKind {
191191 Bool , // AST only, must never appear in a `Token`
192192 Byte ,
@@ -203,7 +203,7 @@ pub enum LitKind {
203203}
204204
205205/// A literal token.
206- #[ derive( Clone , Copy , PartialEq , Encodable , Decodable , Debug , HashStable_Generic ) ]
206+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , Encodable , Decodable , Debug , HashStable_Generic ) ]
207207pub struct Lit {
208208 pub kind : LitKind ,
209209 pub symbol : Symbol ,
@@ -349,7 +349,7 @@ fn ident_can_begin_type(name: Symbol, span: Span, is_raw: IdentIsRaw) -> bool {
349349 . contains ( & name)
350350}
351351
352- #[ derive( PartialEq , Encodable , Decodable , Debug , Copy , Clone , HashStable_Generic ) ]
352+ #[ derive( PartialEq , Eq , Encodable , Decodable , Hash , Debug , Copy , Clone , HashStable_Generic ) ]
353353pub enum IdentIsRaw {
354354 No ,
355355 Yes ,
@@ -376,7 +376,7 @@ impl From<bool> for IdentIsRaw {
376376 }
377377}
378378
379- #[ derive( Clone , Copy , PartialEq , Encodable , Decodable , Debug , HashStable_Generic ) ]
379+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , Encodable , Decodable , Debug , HashStable_Generic ) ]
380380pub enum TokenKind {
381381 /* Expression-operator symbols. */
382382 /// `=`
@@ -526,7 +526,7 @@ pub enum TokenKind {
526526 Eof ,
527527}
528528
529- #[ derive( Clone , Copy , PartialEq , Encodable , Decodable , Debug , HashStable_Generic ) ]
529+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , Encodable , Decodable , Debug , HashStable_Generic ) ]
530530pub struct Token {
531531 pub kind : TokenKind ,
532532 pub span : Span ,
0 commit comments