@@ -543,18 +543,11 @@ impl LintId {
543543}
544544
545545/// Setting for how to handle a lint.
546- #[ derive( Clone , Copy , PartialEq , PartialOrd , Eq , Ord , Debug , Hash ) ]
546+ #[ derive( Clone , Copy , PartialEq , PartialOrd , Eq , Ord , Debug , Hash , HashStable ) ]
547547pub enum Level {
548548 Allow , Warn , Deny , Forbid ,
549549}
550550
551- impl_stable_hash_for ! ( enum self :: Level {
552- Allow ,
553- Warn ,
554- Deny ,
555- Forbid
556- } ) ;
557-
558551impl Level {
559552 /// Converts a level to a lower-case string.
560553 pub fn as_str ( self ) -> & ' static str {
@@ -590,7 +583,7 @@ impl Level {
590583}
591584
592585/// How a lint level was set.
593- #[ derive( Clone , Copy , PartialEq , Eq ) ]
586+ #[ derive( Clone , Copy , PartialEq , Eq , HashStable ) ]
594587pub enum LintSource {
595588 /// Lint is at the default level as declared
596589 /// in rustc or a plugin.
@@ -603,12 +596,6 @@ pub enum LintSource {
603596 CommandLine ( Symbol ) ,
604597}
605598
606- impl_stable_hash_for ! ( enum self :: LintSource {
607- Default ,
608- Node ( name, span, reason) ,
609- CommandLine ( text)
610- } ) ;
611-
612599pub type LevelSource = ( Level , LintSource ) ;
613600
614601pub mod builtin;
0 commit comments