@@ -36,10 +36,10 @@ use rustc_data_structures::sync::Lrc;
36
36
use std:: fmt;
37
37
38
38
/// A SyntaxContext represents a chain of macro expansions (represented by marks).
39
- #[ derive( Clone , Copy , PartialEq , Eq , Default , PartialOrd , Ord , Hash ) ]
39
+ #[ derive( Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
40
40
pub struct SyntaxContext ( u32 ) ;
41
41
42
- #[ derive( Copy , Clone , Debug ) ]
42
+ #[ derive( Debug ) ]
43
43
struct SyntaxContextData {
44
44
outer_mark : Mark ,
45
45
transparency : Transparency ,
@@ -53,10 +53,10 @@ struct SyntaxContextData {
53
53
}
54
54
55
55
/// A mark is a unique ID associated with a macro expansion.
56
- #[ derive( Copy , Clone , PartialEq , Eq , Hash , Debug , RustcEncodable , RustcDecodable ) ]
56
+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , Debug ) ]
57
57
pub struct Mark ( u32 ) ;
58
58
59
- #[ derive( Clone , Debug ) ]
59
+ #[ derive( Debug ) ]
60
60
struct MarkData {
61
61
parent : Mark ,
62
62
expn_info : Option < ExpnInfo > ,
@@ -614,7 +614,7 @@ impl fmt::Debug for SyntaxContext {
614
614
}
615
615
616
616
/// Extra information for tracking spans of macro and syntax sugar expansion
617
- #[ derive( Clone , Hash , Debug , RustcEncodable , RustcDecodable ) ]
617
+ #[ derive( Clone , Debug , RustcEncodable , RustcDecodable ) ]
618
618
pub struct ExpnInfo {
619
619
// --- The part unique to each expansion.
620
620
/// The location of the actual macro invocation or syntax sugar , e.g.
@@ -676,7 +676,7 @@ impl ExpnInfo {
676
676
}
677
677
678
678
/// The source of expansion.
679
- #[ derive( Clone , Hash , Debug , PartialEq , Eq , RustcEncodable , RustcDecodable ) ]
679
+ #[ derive( Clone , Debug , RustcEncodable , RustcDecodable ) ]
680
680
pub enum ExpnKind {
681
681
/// e.g., #[derive(...)] <item>
682
682
MacroAttribute ( Symbol ) ,
@@ -724,7 +724,7 @@ impl MacroKind {
724
724
}
725
725
726
726
/// The kind of compiler desugaring.
727
- #[ derive( Clone , Copy , Hash , Debug , PartialEq , Eq , RustcEncodable , RustcDecodable ) ]
727
+ #[ derive( Clone , Copy , PartialEq , Debug , RustcEncodable , RustcDecodable ) ]
728
728
pub enum DesugaringKind {
729
729
/// We desugar `if c { i } else { e }` to `match $ExprKind::Use(c) { true => i, _ => e }`.
730
730
/// However, we do not want to blame `c` for unreachability but rather say that `i`
0 commit comments