@@ -543,18 +543,11 @@ impl LintId {
543
543
}
544
544
545
545
/// 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 ) ]
547
547
pub enum Level {
548
548
Allow , Warn , Deny , Forbid ,
549
549
}
550
550
551
- impl_stable_hash_for ! ( enum self :: Level {
552
- Allow ,
553
- Warn ,
554
- Deny ,
555
- Forbid
556
- } ) ;
557
-
558
551
impl Level {
559
552
/// Converts a level to a lower-case string.
560
553
pub fn as_str ( self ) -> & ' static str {
@@ -590,7 +583,7 @@ impl Level {
590
583
}
591
584
592
585
/// How a lint level was set.
593
- #[ derive( Clone , Copy , PartialEq , Eq ) ]
586
+ #[ derive( Clone , Copy , PartialEq , Eq , HashStable ) ]
594
587
pub enum LintSource {
595
588
/// Lint is at the default level as declared
596
589
/// in rustc or a plugin.
@@ -603,12 +596,6 @@ pub enum LintSource {
603
596
CommandLine ( Symbol ) ,
604
597
}
605
598
606
- impl_stable_hash_for ! ( enum self :: LintSource {
607
- Default ,
608
- Node ( name, span, reason) ,
609
- CommandLine ( text)
610
- } ) ;
611
-
612
599
pub type LevelSource = ( Level , LintSource ) ;
613
600
614
601
pub mod builtin;
0 commit comments