@@ -107,10 +107,14 @@ impl<'a> FmtStrs<'a> {
107
107
vec ! ( "id" , "name" , "qualname" , "value" , "type" , "scopeid" ) ,
108
108
true , true ) ,
109
109
Enum => ( "enum" , vec ! ( "id" , "qualname" , "scopeid" ) , true , true ) ,
110
- Variant => ( "variant" , vec ! ( "id" , "name" , "qualname" , "value" , "scopeid" ) , true , true ) ,
110
+ Variant => ( "variant" ,
111
+ vec ! ( "id" , "name" , "qualname" , "type" , "value" , "scopeid" ) ,
112
+ true , true ) ,
111
113
VariantStruct => ( "variant_struct" ,
112
- vec ! ( "id" , "ctor_id" , "qualname" , "value" , "scopeid" ) , true , true ) ,
113
- Function => ( "function" , vec ! ( "id" , "qualname" , "declid" , "declidcrate" , "scopeid" ) ,
114
+ vec ! ( "id" , "ctor_id" , "qualname" , "type" , "value" , "scopeid" ) ,
115
+ true , true ) ,
116
+ Function => ( "function" ,
117
+ vec ! ( "id" , "qualname" , "declid" , "declidcrate" , "scopeid" ) ,
114
118
true , true ) ,
115
119
MethodDecl => ( "method_decl" , vec ! ( "id" , "qualname" , "scopeid" ) , true , true ) ,
116
120
Struct => ( "struct" , vec ! ( "id" , "ctor_id" , "qualname" , "scopeid" ) , true , true ) ,
@@ -128,7 +132,7 @@ impl<'a> FmtStrs<'a> {
128
132
true , false ) ,
129
133
MethodCall => ( "method_call" ,
130
134
vec ! ( "refid" , "refidcrate" , "declid" , "declidcrate" , "scopeid" ) ,
131
- true , true ) ,
135
+ true , true ) ,
132
136
Typedef => ( "typedef" , vec ! ( "id" , "qualname" , "value" ) , true , true ) ,
133
137
ExternalCrate => ( "external_crate" , vec ! ( "name" , "crate" , "file_name" ) , false , false ) ,
134
138
Crate => ( "crate" , vec ! ( "name" ) , true , false ) ,
@@ -140,7 +144,7 @@ impl<'a> FmtStrs<'a> {
140
144
true , true ) ,
141
145
StructRef => ( "struct_ref" ,
142
146
vec ! ( "refid" , "refidcrate" , "qualname" , "scopeid" ) ,
143
- true , true ) ,
147
+ true , true ) ,
144
148
FnRef => ( "fn_ref" , vec ! ( "refid" , "refidcrate" , "qualname" , "scopeid" ) , true , true )
145
149
}
146
150
}
@@ -336,12 +340,13 @@ impl<'a> FmtStrs<'a> {
336
340
id : NodeId ,
337
341
name : & str ,
338
342
qualname : & str ,
343
+ typ : & str ,
339
344
val : & str ,
340
345
scope_id : NodeId ) {
341
346
self . check_and_record ( Variant ,
342
347
span,
343
348
sub_span,
344
- svec ! ( id, name, qualname, val, scope_id) ) ;
349
+ svec ! ( id, name, qualname, typ , val, scope_id) ) ;
345
350
}
346
351
347
352
pub fn struct_variant_str ( & mut self ,
@@ -350,12 +355,13 @@ impl<'a> FmtStrs<'a> {
350
355
id : NodeId ,
351
356
ctor_id : NodeId ,
352
357
name : & str ,
358
+ typ : & str ,
353
359
val : & str ,
354
360
scope_id : NodeId ) {
355
361
self . check_and_record ( VariantStruct ,
356
362
span,
357
363
sub_span,
358
- svec ! ( id, ctor_id, name, val, scope_id) ) ;
364
+ svec ! ( id, ctor_id, name, typ , val, scope_id) ) ;
359
365
}
360
366
361
367
pub fn fn_str ( & mut self ,
0 commit comments