@@ -17,7 +17,7 @@ use rustc_span::symbol::{Ident, Symbol};
1717use rustc_span:: { edition:: Edition , ErrorGuaranteed , Span , DUMMY_SP } ;
1818use std:: borrow:: Cow ;
1919use std:: fmt;
20- use std:: hash:: { Hash , Hasher } ;
20+ use std:: hash:: Hash ;
2121
2222#[ derive( Clone , Copy , PartialEq , Encodable , Decodable , Debug , HashStable_Generic , Hash ) ]
2323pub enum CommentKind {
@@ -245,7 +245,7 @@ impl From<IdentIsRaw> for bool {
245245
246246// SAFETY: due to the `Clone` impl below, all fields of all variants other than
247247// `Interpolated` must impl `Copy`.
248- #[ derive( PartialEq , Encodable , Decodable , Debug , HashStable_Generic , Hash ) ]
248+ #[ derive( PartialEq , Encodable , Decodable , Debug , HashStable_Generic ) ]
249249pub enum TokenKind {
250250 /* Expression-operator symbols. */
251251 /// `=`
@@ -371,7 +371,7 @@ impl Clone for TokenKind {
371371 }
372372}
373373
374- #[ derive( Clone , PartialEq , Encodable , Decodable , Debug , HashStable_Generic , Hash ) ]
374+ #[ derive( Clone , PartialEq , Encodable , Decodable , Debug , HashStable_Generic ) ]
375375pub struct Token {
376376 pub kind : TokenKind ,
377377 pub span : Span ,
@@ -1019,12 +1019,6 @@ where
10191019 }
10201020}
10211021
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-
10281022// Some types are used a lot. Make sure they don't unintentionally get bigger.
10291023#[ cfg( target_pointer_width = "64" ) ]
10301024mod size_asserts {
0 commit comments