@@ -19,18 +19,18 @@ use core::vec;
19
19
20
20
pub type AstId = int ;
21
21
22
- #[ deriving_eq ]
22
+ #[ deriving ( Eq ) ]
23
23
pub struct Doc {
24
24
pages : ~[ Page ]
25
25
}
26
26
27
- #[ deriving_eq ]
27
+ #[ deriving ( Eq ) ]
28
28
pub enum Page {
29
29
CratePage ( CrateDoc ) ,
30
30
ItemPage ( ItemTag )
31
31
}
32
32
33
- #[ deriving_eq ]
33
+ #[ deriving ( Eq ) ]
34
34
pub enum Implementation {
35
35
Required ,
36
36
Provided ,
@@ -40,7 +40,7 @@ pub enum Implementation {
40
40
* Most rustdocs can be parsed into 'sections' according to their markdown
41
41
* headers
42
42
*/
43
- #[ deriving_eq ]
43
+ #[ deriving ( Eq ) ]
44
44
pub struct Section {
45
45
header : ~str ,
46
46
body : ~str
@@ -49,12 +49,12 @@ pub struct Section {
49
49
// FIXME (#2596): We currently give topmod the name of the crate. There
50
50
// would probably be fewer special cases if the crate had its own name
51
51
// and topmod's name was the empty string.
52
- #[ deriving_eq ]
52
+ #[ deriving ( Eq ) ]
53
53
pub struct CrateDoc {
54
54
topmod : ModDoc
55
55
}
56
56
57
- #[ deriving_eq ]
57
+ #[ deriving ( Eq ) ]
58
58
pub enum ItemTag {
59
59
ModTag ( ModDoc ) ,
60
60
NmodTag ( NmodDoc ) ,
@@ -67,7 +67,7 @@ pub enum ItemTag {
67
67
StructTag ( StructDoc )
68
68
}
69
69
70
- #[ deriving_eq ]
70
+ #[ deriving ( Eq ) ]
71
71
pub struct ItemDoc {
72
72
id : AstId ,
73
73
name : ~str ,
@@ -79,20 +79,20 @@ pub struct ItemDoc {
79
79
reexport : bool
80
80
}
81
81
82
- #[ deriving_eq ]
82
+ #[ deriving ( Eq ) ]
83
83
pub struct SimpleItemDoc {
84
84
item : ItemDoc ,
85
85
sig : Option < ~str >
86
86
}
87
87
88
- #[ deriving_eq ]
88
+ #[ deriving ( Eq ) ]
89
89
pub struct ModDoc {
90
90
item : ItemDoc ,
91
91
items : ~[ ItemTag ] ,
92
92
index : Option < Index >
93
93
}
94
94
95
- #[ deriving_eq ]
95
+ #[ deriving ( Eq ) ]
96
96
pub struct NmodDoc {
97
97
item : ItemDoc ,
98
98
fns : ~[ FnDoc ] ,
@@ -103,26 +103,26 @@ pub type ConstDoc = SimpleItemDoc;
103
103
104
104
pub type FnDoc = SimpleItemDoc ;
105
105
106
- #[ deriving_eq ]
106
+ #[ deriving ( Eq ) ]
107
107
pub struct EnumDoc {
108
108
item : ItemDoc ,
109
109
variants : ~[ VariantDoc ]
110
110
}
111
111
112
- #[ deriving_eq ]
112
+ #[ deriving ( Eq ) ]
113
113
pub struct VariantDoc {
114
114
name : ~str ,
115
115
desc : Option < ~str > ,
116
116
sig : Option < ~str >
117
117
}
118
118
119
- #[ deriving_eq ]
119
+ #[ deriving ( Eq ) ]
120
120
pub struct TraitDoc {
121
121
item : ItemDoc ,
122
122
methods : ~[ MethodDoc ]
123
123
}
124
124
125
- #[ deriving_eq ]
125
+ #[ deriving ( Eq ) ]
126
126
pub struct MethodDoc {
127
127
name : ~str ,
128
128
brief : Option < ~str > ,
@@ -132,7 +132,7 @@ pub struct MethodDoc {
132
132
implementation : Implementation ,
133
133
}
134
134
135
- #[ deriving_eq ]
135
+ #[ deriving ( Eq ) ]
136
136
pub struct ImplDoc {
137
137
item : ItemDoc ,
138
138
trait_types : ~[ ~str ] ,
@@ -142,14 +142,14 @@ pub struct ImplDoc {
142
142
143
143
pub type TyDoc = SimpleItemDoc ;
144
144
145
- #[ deriving_eq ]
145
+ #[ deriving ( Eq ) ]
146
146
pub struct StructDoc {
147
147
item : ItemDoc ,
148
148
fields : ~[ ~str ] ,
149
149
sig : Option < ~str >
150
150
}
151
151
152
- #[ deriving_eq ]
152
+ #[ deriving ( Eq ) ]
153
153
pub struct Index {
154
154
entries : ~[ IndexEntry ]
155
155
}
@@ -164,7 +164,7 @@ pub struct Index {
164
164
* * brief - The brief description
165
165
* * link - A format-specific string representing the link target
166
166
*/
167
- #[ deriving_eq ]
167
+ #[ deriving ( Eq ) ]
168
168
pub struct IndexEntry {
169
169
kind : ~str ,
170
170
name : ~str ,
0 commit comments