@@ -17,7 +17,7 @@ use rustc_span::symbol::{Ident, Symbol};
17
17
use rustc_span:: { edition:: Edition , ErrorGuaranteed , Span , DUMMY_SP } ;
18
18
use std:: borrow:: Cow ;
19
19
use std:: fmt;
20
- use std:: hash:: { Hash , Hasher } ;
20
+ use std:: hash:: Hash ;
21
21
22
22
#[ derive( Clone , Copy , PartialEq , Encodable , Decodable , Debug , HashStable_Generic , Hash ) ]
23
23
pub enum CommentKind {
@@ -245,7 +245,7 @@ impl From<IdentIsRaw> for bool {
245
245
246
246
// SAFETY: due to the `Clone` impl below, all fields of all variants other than
247
247
// `Interpolated` must impl `Copy`.
248
- #[ derive( PartialEq , Encodable , Decodable , Debug , HashStable_Generic , Hash ) ]
248
+ #[ derive( PartialEq , Encodable , Decodable , Debug , HashStable_Generic ) ]
249
249
pub enum TokenKind {
250
250
/* Expression-operator symbols. */
251
251
/// `=`
@@ -371,7 +371,7 @@ impl Clone for TokenKind {
371
371
}
372
372
}
373
373
374
- #[ derive( Clone , PartialEq , Encodable , Decodable , Debug , HashStable_Generic , Hash ) ]
374
+ #[ derive( Clone , PartialEq , Encodable , Decodable , Debug , HashStable_Generic ) ]
375
375
pub struct Token {
376
376
pub kind : TokenKind ,
377
377
pub span : Span ,
@@ -1019,12 +1019,6 @@ where
1019
1019
}
1020
1020
}
1021
1021
1022
- impl Hash for Nonterminal {
1023
- fn hash < H : Hasher > ( & self , _state : & mut H ) {
1024
- panic ! ( "interpolated tokens should not be present in the HIR" )
1025
- }
1026
- }
1027
-
1028
1022
// Some types are used a lot. Make sure they don't unintentionally get bigger.
1029
1023
#[ cfg( target_pointer_width = "64" ) ]
1030
1024
mod size_asserts {
0 commit comments