@@ -28,7 +28,7 @@ pub struct CrateData {
28
28
29
29
/// Data for any entity in the Rust language. The actual data contained varies
30
30
/// with the kind of entity being queried. See the nested structs for details.
31
- #[ derive( Debug , RustcEncodable ) ]
31
+ #[ derive( Debug ) ]
32
32
pub enum Data {
33
33
/// Data for Enums.
34
34
EnumData ( EnumData ) ,
@@ -79,7 +79,7 @@ pub enum Data {
79
79
VariableRefData ( VariableRefData ) ,
80
80
}
81
81
82
- #[ derive( Eq , PartialEq , Clone , Copy , Debug , RustcEncodable ) ]
82
+ #[ derive( Eq , PartialEq , Clone , Copy , Debug ) ]
83
83
pub enum Visibility {
84
84
Public ,
85
85
Restricted ,
@@ -109,7 +109,7 @@ impl<'a> From<&'a hir::Visibility> for Visibility {
109
109
}
110
110
111
111
/// Data for the prelude of a crate.
112
- #[ derive( Debug , RustcEncodable ) ]
112
+ #[ derive( Debug ) ]
113
113
pub struct CratePreludeData {
114
114
pub crate_name : String ,
115
115
pub crate_root : String ,
@@ -118,7 +118,7 @@ pub struct CratePreludeData {
118
118
}
119
119
120
120
/// Data for enum declarations.
121
- #[ derive( Clone , Debug , RustcEncodable ) ]
121
+ #[ derive( Clone , Debug ) ]
122
122
pub struct EnumData {
123
123
pub id : NodeId ,
124
124
pub name : String ,
@@ -134,7 +134,7 @@ pub struct EnumData {
134
134
}
135
135
136
136
/// Data for extern crates.
137
- #[ derive( Debug , RustcEncodable ) ]
137
+ #[ derive( Debug ) ]
138
138
pub struct ExternCrateData {
139
139
pub id : NodeId ,
140
140
pub name : String ,
@@ -145,15 +145,15 @@ pub struct ExternCrateData {
145
145
}
146
146
147
147
/// Data about a function call.
148
- #[ derive( Debug , RustcEncodable ) ]
148
+ #[ derive( Debug ) ]
149
149
pub struct FunctionCallData {
150
150
pub span : Span ,
151
151
pub scope : NodeId ,
152
152
pub ref_id : DefId ,
153
153
}
154
154
155
155
/// Data for all kinds of functions and methods.
156
- #[ derive( Clone , Debug , RustcEncodable ) ]
156
+ #[ derive( Clone , Debug ) ]
157
157
pub struct FunctionData {
158
158
pub id : NodeId ,
159
159
pub name : String ,
@@ -170,14 +170,14 @@ pub struct FunctionData {
170
170
}
171
171
172
172
/// Data about a function call.
173
- #[ derive( Debug , RustcEncodable ) ]
173
+ #[ derive( Debug ) ]
174
174
pub struct FunctionRefData {
175
175
pub span : Span ,
176
176
pub scope : NodeId ,
177
177
pub ref_id : DefId ,
178
178
}
179
179
180
- #[ derive( Debug , RustcEncodable ) ]
180
+ #[ derive( Debug ) ]
181
181
pub struct ImplData {
182
182
pub id : NodeId ,
183
183
pub span : Span ,
@@ -186,7 +186,7 @@ pub struct ImplData {
186
186
pub self_ref : Option < DefId > ,
187
187
}
188
188
189
- #[ derive( Debug , RustcEncodable ) ]
189
+ #[ derive( Debug ) ]
190
190
// FIXME: this struct should not exist. However, removing it requires heavy
191
191
// refactoring of dump_visitor.rs. See PR 31838 for more info.
192
192
pub struct ImplData2 {
@@ -200,15 +200,15 @@ pub struct ImplData2 {
200
200
pub self_ref : Option < TypeRefData > ,
201
201
}
202
202
203
- #[ derive( Debug , RustcEncodable ) ]
203
+ #[ derive( Debug ) ]
204
204
pub struct InheritanceData {
205
205
pub span : Span ,
206
206
pub base_id : DefId ,
207
207
pub deriv_id : NodeId
208
208
}
209
209
210
210
/// Data about a macro declaration.
211
- #[ derive( Debug , RustcEncodable ) ]
211
+ #[ derive( Debug ) ]
212
212
pub struct MacroData {
213
213
pub span : Span ,
214
214
pub name : String ,
@@ -217,7 +217,7 @@ pub struct MacroData {
217
217
}
218
218
219
219
/// Data about a macro use.
220
- #[ derive( Debug , RustcEncodable ) ]
220
+ #[ derive( Debug ) ]
221
221
pub struct MacroUseData {
222
222
pub span : Span ,
223
223
pub name : String ,
@@ -230,7 +230,7 @@ pub struct MacroUseData {
230
230
}
231
231
232
232
/// Data about a method call.
233
- #[ derive( Debug , RustcEncodable ) ]
233
+ #[ derive( Debug ) ]
234
234
pub struct MethodCallData {
235
235
pub span : Span ,
236
236
pub scope : NodeId ,
@@ -239,7 +239,7 @@ pub struct MethodCallData {
239
239
}
240
240
241
241
/// Data for method declarations (methods with a body are treated as functions).
242
- #[ derive( Clone , Debug , RustcEncodable ) ]
242
+ #[ derive( Clone , Debug ) ]
243
243
pub struct MethodData {
244
244
pub id : NodeId ,
245
245
pub name : String ,
@@ -256,7 +256,7 @@ pub struct MethodData {
256
256
}
257
257
258
258
/// Data for modules.
259
- #[ derive( Debug , RustcEncodable ) ]
259
+ #[ derive( Debug ) ]
260
260
pub struct ModData {
261
261
pub id : NodeId ,
262
262
pub name : String ,
@@ -272,15 +272,15 @@ pub struct ModData {
272
272
}
273
273
274
274
/// Data for a reference to a module.
275
- #[ derive( Debug , RustcEncodable ) ]
275
+ #[ derive( Debug ) ]
276
276
pub struct ModRefData {
277
277
pub span : Span ,
278
278
pub scope : NodeId ,
279
279
pub ref_id : Option < DefId > ,
280
280
pub qualname : String
281
281
}
282
282
283
- #[ derive( Debug , RustcEncodable ) ]
283
+ #[ derive( Debug ) ]
284
284
pub struct StructData {
285
285
pub span : Span ,
286
286
pub name : String ,
@@ -296,7 +296,7 @@ pub struct StructData {
296
296
pub attributes : Vec < Attribute > ,
297
297
}
298
298
299
- #[ derive( Debug , RustcEncodable ) ]
299
+ #[ derive( Debug ) ]
300
300
pub struct StructVariantData {
301
301
pub span : Span ,
302
302
pub name : String ,
@@ -311,7 +311,7 @@ pub struct StructVariantData {
311
311
pub attributes : Vec < Attribute > ,
312
312
}
313
313
314
- #[ derive( Debug , RustcEncodable ) ]
314
+ #[ derive( Debug ) ]
315
315
pub struct TraitData {
316
316
pub span : Span ,
317
317
pub id : NodeId ,
@@ -326,7 +326,7 @@ pub struct TraitData {
326
326
pub attributes : Vec < Attribute > ,
327
327
}
328
328
329
- #[ derive( Debug , RustcEncodable ) ]
329
+ #[ derive( Debug ) ]
330
330
pub struct TupleVariantData {
331
331
pub span : Span ,
332
332
pub id : NodeId ,
@@ -342,7 +342,7 @@ pub struct TupleVariantData {
342
342
}
343
343
344
344
/// Data for a typedef.
345
- #[ derive( Debug , RustcEncodable ) ]
345
+ #[ derive( Debug ) ]
346
346
pub struct TypeDefData {
347
347
pub id : NodeId ,
348
348
pub name : String ,
@@ -357,15 +357,15 @@ pub struct TypeDefData {
357
357
}
358
358
359
359
/// Data for a reference to a type or trait.
360
- #[ derive( Clone , Debug , RustcEncodable ) ]
360
+ #[ derive( Clone , Debug ) ]
361
361
pub struct TypeRefData {
362
362
pub span : Span ,
363
363
pub scope : NodeId ,
364
364
pub ref_id : Option < DefId > ,
365
365
pub qualname : String ,
366
366
}
367
367
368
- #[ derive( Debug , RustcEncodable ) ]
368
+ #[ derive( Debug ) ]
369
369
pub struct UseData {
370
370
pub id : NodeId ,
371
371
pub span : Span ,
@@ -375,7 +375,7 @@ pub struct UseData {
375
375
pub visibility : Visibility ,
376
376
}
377
377
378
- #[ derive( Debug , RustcEncodable ) ]
378
+ #[ derive( Debug ) ]
379
379
pub struct UseGlobData {
380
380
pub id : NodeId ,
381
381
pub span : Span ,
@@ -385,7 +385,7 @@ pub struct UseGlobData {
385
385
}
386
386
387
387
/// Data for local and global variables (consts and statics).
388
- #[ derive( Debug , RustcEncodable ) ]
388
+ #[ derive( Debug ) ]
389
389
pub struct VariableData {
390
390
pub id : NodeId ,
391
391
pub kind : VariableKind ,
@@ -402,7 +402,7 @@ pub struct VariableData {
402
402
pub attributes : Vec < Attribute > ,
403
403
}
404
404
405
- #[ derive( Debug , RustcEncodable ) ]
405
+ #[ derive( Debug ) ]
406
406
pub enum VariableKind {
407
407
Static ,
408
408
Const ,
@@ -412,7 +412,7 @@ pub enum VariableKind {
412
412
413
413
/// Data for the use of some item (e.g., the use of a local variable, which
414
414
/// will refer to that variables declaration (by ref_id)).
415
- #[ derive( Debug , RustcEncodable ) ]
415
+ #[ derive( Debug ) ]
416
416
pub struct VariableRefData {
417
417
pub name : String ,
418
418
pub span : Span ,
@@ -424,7 +424,7 @@ pub struct VariableRefData {
424
424
/// Encodes information about the signature of a definition. This should have
425
425
/// enough information to create a nice display about a definition without
426
426
/// access to the source code.
427
- #[ derive( Clone , Debug , RustcEncodable ) ]
427
+ #[ derive( Clone , Debug ) ]
428
428
pub struct Signature {
429
429
pub span : Span ,
430
430
pub text : String ,
@@ -438,7 +438,7 @@ pub struct Signature {
438
438
439
439
/// An element of a signature. `start` and `end` are byte offsets into the `text`
440
440
/// of the parent `Signature`.
441
- #[ derive( Clone , Debug , RustcEncodable ) ]
441
+ #[ derive( Clone , Debug ) ]
442
442
pub struct SigElement {
443
443
pub id : DefId ,
444
444
pub start : usize ,
0 commit comments